/* ================================================================
   RESET & GLOBAL
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background: #eaeff6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow-x: hidden;
    position: relative;
}

/* Dot-grid + soft radial glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 15% 15%, var(--accent-soft) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, var(--accent-soft) 0%, transparent 55%),
        radial-gradient(#c4cfe0 1px, transparent 1px);
    background-size: auto, auto, 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* ================================================================
   WRAPPER
================================================================ */
.lp-wrapper {
    width: 100%;
    max-width: 1040px;
    position: relative;
    z-index: 1;
    margin: auto; 
}

/* ================================================================
   CARD
================================================================ */
.lp-card {
    display: flex;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 2px 0 rgba(255,255,255,0.85) inset,
        0 28px 64px rgba(0,0,0,0.13),
        0 4px 14px rgba(0,0,0,0.07);
    min-height: 630px;
    animation: lp-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(36px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ================================================================
   LEFT PANEL — desktop
================================================================ */
.lp-panel {
    flex: 0 0 54%;
    background: linear-gradient(155deg, var(--panel-grad-a) 0%, var(--panel-grad-b) 100%);
    display: flex;
    flex-direction: column;
    padding: 44px 40px 36px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.lp-panel::before {
    content: '';
    position: absolute;
    top: -90px; right: -90px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.lp-panel::after {
    content: '';
    position: absolute;
    bottom: -70px; left: -55px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.lp-panel-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.lp-panel-ring2 {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 240px; height: 240px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* ================================================================
   AVURUDU SUN DECORATION (LAYERED)
================================================================ */
@keyframes sun-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sun-pulse-subtle {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.02); }
}

.sun-wrapper {
    position: absolute;
    z-index: 1; 
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 4px 20px rgba(255, 170, 0, 0.4));
}

.sun-wrapper.desktop {
    top: 20px;
    right: 10px;
    width: 100px;
    height: 100px;
}

.sun-wrapper.mobile {
    top: 25px;
    right: 5px;
    width: 65px;
    height: 65px;
}

.sun-flame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: sun-spin-slow 25s linear infinite;
}

.sun-face {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    object-fit: contain;
    z-index: 2;
    animation: sun-pulse-subtle 3s ease-in-out infinite alternate;
}

/* Brand block */
.lp-panel-brand {
    position: relative; z-index: 2;
    margin-bottom: 32px;
}
.lp-panel-logo-wrap { position: relative; display: inline-block; }
.lp-panel-logo {
    height: 46px; max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

/* Santa hat */
@keyframes hat-tiny-shake {
    0%, 88%, 100% { transform: rotate(var(--hat-base-rot, -20deg)) scale(1);    }
    91%            { transform: rotate(calc(var(--hat-base-rot, -20deg) + 7deg)) scale(1.05); }
    94%            { transform: rotate(calc(var(--hat-base-rot, -20deg) - 7deg)) scale(1.02); }
    97%            { transform: rotate(calc(var(--hat-base-rot, -20deg) + 2deg)) scale(1);    }
}
.hat-on-logo {
    position: absolute;
    width: 40px; top: -15px; left: -12px;
    --hat-base-rot: -12deg;
    transform: rotate(var(--hat-base-rot));
    transform-origin: bottom center;
    z-index: 20;
    filter: drop-shadow(1px 3px 5px rgba(0,0,0,0.35));
    animation: hat-tiny-shake 4.2s infinite ease-in-out;
}
.hat-on-logo.ascentra-hat {
    left: -1px;
    top: -13px;
    --hat-base-rot: -15deg;
    transform: rotate(var(--hat-base-rot));
}

/* Headline */
.lp-panel-headline {
    position: relative; z-index: 2;
    font-family: 'Sora', sans-serif;
    font-size: 25px; font-weight: 800;
    line-height: 1.3; margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.lp-panel-subtext {
    position: relative; z-index: 2;
    font-size: 13px; line-height: 1.75;
    opacity: 0.78; font-weight: 400;
    max-width: 92%; margin-bottom: 28px;
}

/* ================================================================
   FEATURE CAROUSEL
================================================================ */
.lp-carousel-wrap {
    position: relative; z-index: 2;
    flex: 1;
    min-height: 200px;
}

.lp-feature-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(50px) scale(0.92);
    transition: 
        opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
        filter 1.2s ease;
    pointer-events: none;
}

.lp-feature-slide.is-active {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
    pointer-events: auto;
    position: relative; 
}

.lp-feature-slide.is-exit {
    opacity: 0;
    filter: blur(6px);
    transform: translateX(-50px) scale(1.08);
    position: absolute;
}

.lp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 11px 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lp-feature-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.20);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.lp-feature-text strong {
    display: block;
    font-size: 12.5px; font-weight: 700;
    line-height: 1.3;
}
.lp-feature-text span {
    font-size: 11px;
    opacity: 0.70;
    line-height: 1.4;
}

/* Carousel dots */
.lp-carousel-dots {
    position: relative; z-index: 2;
    display: flex; gap: 6px;
    margin-top: 16px;
}
.lp-cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.32);
    transition: all 0.35s ease;
    cursor: pointer;
}
.lp-cdot.active {
    width: 22px;
    border-radius: 3px;
    background: rgba(255,255,255,0.90);
}

/* Panel footer */
.lp-panel-footer {
    position: relative; z-index: 2;
    font-size: 11px; opacity: 0.45;
    margin-top: 22px; flex-shrink: 0;
}

/* ================================================================
   RIGHT FORM SIDE
================================================================ */
.lp-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 0;
}

.lp-client-header {
    height: 112px; 
    min-height: 112px; 
    max-height: 112px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 8px 20px;
    border-bottom: 1px solid #edf0f5;
    flex-shrink: 0;
    overflow: hidden;
}
.lp-client-header img {
    max-height: 96px; 
    max-width: 100%;
    width: auto; height: auto;
    object-fit: contain; display: block;
}

.lp-form-title {
    font-family: 'Sora', sans-serif;
    font-size: 23px; font-weight: 800;
    color: #1a202c; margin-bottom: 4px;
    letter-spacing: -0.4px;
}
.lp-form-subtitle {
    font-size: 13.5px; color: #718096;
    margin-bottom: 28px; font-weight: 400;
}
.lp-form-subtitle span { color: var(--accent); font-weight: 600; }

.lp-field { margin-bottom: 20px; }

.lp-label {
    display: block;
    font-size: 11.5px; font-weight: 700;
    color: #4a5568; margin-bottom: 7px;
    letter-spacing: 0.6px; text-transform: uppercase;
}

.lp-input-wrap { position: relative; }

.lp-input-icon {
    position: absolute; top: 50%; left: 16px;
    transform: translateY(-50%);
    color: #b0bec9; font-size: 16px;
    pointer-events: none;
    transition: color 0.25s;
}
.lp-input-wrap:focus-within .lp-input-icon { color: var(--accent); }

.lp-input {
    width: 100%; height: 52px;
    border-radius: 14px;
    border: 2px solid #e8edf4;
    background: #f7f9fc;
    padding: 0 50px 0 46px;
    font-size: 14.5px;
    font-family: 'DM Sans', sans-serif;
    color: #1a202c;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    outline: none;
}
.lp-input::placeholder { color: #b8c2cc; font-size: 14.5px; }
.lp-input[type="password"] {
    font-size: 20px;
    letter-spacing: 2px;
}
.lp-input[type="password"]::placeholder {
    font-size: 14.5px;
    letter-spacing: normal;
}
.lp-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: var(--input-focus-ring);
}

.lp-field.error   .lp-input { border-color: #fc5c65; background: #fff5f5; }
.lp-field.success .lp-input { border-color: #20c997; }

.lp-error-msg {
    font-size: 11px; color: #fc5c65;
    font-weight: 600; margin-top: 5px;
    min-height: 16px; padding-left: 2px;
}

.lp-reveal {
    position: absolute; top: 50%; right: 14px;
    transform: translateY(-50%);
    background: none; border: none;
    color: #b0bec9; cursor: pointer;
    padding: 4px 6px; font-size: 14px;
    transition: color 0.2s;
}
.lp-reveal:hover { color: var(--accent); }

.lp-btn-wrap { margin-top: 10px; }

.lp-btn {
    width: 100%; height: 54px;
    border-radius: 14px; border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: 0.2px; cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lp-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-deeper) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-h);
}
.lp-btn:active  { transform: translateY(0); }
.lp-btn:disabled{ opacity: 0.75; cursor: not-allowed; transform: none; }

.lp-btn-success {
    background: linear-gradient(135deg, #56d364 0%, #2ea043 100%) !important;
    box-shadow: 0 8px 28px rgba(46,160,67,0.42) !important;
}

.animate-spin { animation: spin 0.85s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.lp-form-footer {
    padding: 14px 52px 22px;
    border-top: 1px solid #edf0f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;   
    text-align: center;
}

.lp-copyright {
    font-size: 11.5px;
    color: #5d6e85;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lp-copyright img {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* ================================================================
   MOBILE TOP BAR
================================================================ */
.lp-mobile-bar {
    display: none;
    background: linear-gradient(135deg, var(--panel-grad-a) 0%, var(--panel-grad-b) 100%);
    padding: 26px 20px 20px;
    text-align: center;
    border-radius: 28px 28px 0 0;
    position: relative; overflow: hidden;
    flex-shrink: 0;
}
.lp-mobile-bar::before {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%; pointer-events: none;
}
.lp-mobile-logo-wrap { position: relative; display: inline-block; }
.lp-mobile-logo {
    height: 34px; max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}
.mobile-hat {
    position: absolute; width: 30px;
    top: -13px; left: -10px;
    --hat-base-rot: -12deg;
    transform: rotate(var(--hat-base-rot));
    transform-origin: bottom center;
    z-index: 10;
    animation: hat-tiny-shake 4.2s infinite ease-in-out;
}
.mobile-hat.ascentra-hat {
    left: 3px;
    top: -11px;
    --hat-base-rot: -10deg;
    transform: rotate(var(--hat-base-rot));
}
.lp-mobile-tagline {
    color: rgba(255,255,255,0.75);
    font-size: 11.5px; margin-top: 7px;
}

/* ================================================================
   INLINE RESET PASSWORD PANEL
================================================================ */
.lp-form-panels-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 440px; 
}

.lp-form-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 52px 24px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity  0.45s ease;
    will-change: transform, opacity;
}

#panel-login {
    transform: translateX(0);
    opacity: 1;
}
#panel-login.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

#panel-reset {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}
#panel-reset.slide-in {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Adjustments specifically to compress the Reset form to prevent stretching */
#panel-reset .lp-form-subtitle {
    margin-bottom: 18px; /* Reduced to pull inputs up */
}
#panel-reset .lp-field {
    margin-bottom: 10px; /* Reduced to bring fields closer together */
}
#panel-reset .lp-error-msg {
    min-height: 14px;
    margin-top: 2px;
}

.lp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 12px; /* Reduced to stop pushing content down too far */
    transition: opacity 0.2s;
}
.lp-back-link:hover { opacity: 0.75; }

/* Password strength bar adjustments */
.lp-strength-bar-wrap {
    height: 4px;
    border-radius: 2px;
    background: #e8edf4;
    margin-top: 6px;
    overflow: hidden;
}
.lp-strength-bar {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease, background 0.4s ease;
}
.lp-strength-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    min-height: 12px;
    color: #a0aec0;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
    body { padding: 24px 14px; align-items: flex-start; }
    .lp-wrapper { margin: auto; }
    .lp-card {
        flex-direction: column;
        max-width: 480px; width: 100%;
        margin: 0 auto;
        min-height: auto;
        border-radius: 28px;
    }
    .lp-mobile-bar { display: block; }
    .lp-panel { display: none; }
    .lp-client-header { padding: 14px 30px; }
    .lp-form-panel    { padding: 28px 30px 20px; }
    .lp-form-footer   { padding: 13px 30px 20px; }
    .lp-form-title { font-size: 23px; }
}

@media (max-width: 520px) {
    body { padding: 18px 12px; }
    .lp-card { max-width: 100%; border-radius: 22px; }
    .lp-mobile-bar { border-radius: 22px 22px 0 0; }
    .lp-client-header {
        padding: 6px 12px;
        height: 96px; min-height: 96px; max-height: 96px;
    }
    .lp-client-header img {
        max-height: 84px;
    }
    .lp-form-panel   { padding: 24px 22px 16px; }
    .lp-form-footer  { padding: 12px 22px 18px; }
    .lp-form-title   { font-size: 21px; }
    .lp-input        { height: 50px; font-size: 14px; }
    .lp-btn          { height: 50px; font-size: 14.5px; }
}

@media (max-width: 380px) {
    body { padding: 14px 10px; }
    .lp-form-panel   { padding: 20px 18px 14px; }
    .lp-form-footer  { padding: 10px 18px 16px; }
    .lp-client-header{ padding: 10px 18px; }
}

/* ================================================================
   TRIAL COUNTDOWN TIMER (RED & MINIMAL)
================================================================ */
.lp-trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 19px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(224, 36, 68, 0.08);
    position: relative;
    overflow: hidden;
    height: 60px;
}

.lp-trial-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e02444;
    border-radius: 10px 0 0 10px;
}

.lp-trial-icon {
    color: #e02444;
    font-size: 18px;
    margin-right: 10px;
    animation: pulse-icon 2s infinite;
}

.lp-trial-text {
    font-size: 11px;
    font-weight: 700;
    color: #c01c38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.lp-trial-timer {
    display: flex;
    gap: 4px;
}

.lp-time-box {
    background: #ffffff;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 0px 6px;
    min-width: 36px;
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #e02444;
    box-shadow: 0 2px 4px rgba(224, 36, 68, 0.05);
}

.lp-time-label {
    font-size: 8px;
    display: block;
    color: #d32f2f;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .lp-form-panels-wrap {
        min-height: 440px !important;
    }
    .lp-form-panel {
        justify-content: center !important; 
        padding-top: 24px !important; 
    }
    
    .lp-trial-banner { 
        padding: 17px 10px !important; 
        flex-direction: row !important;
        align-items: center !important; 
        gap: 5px !important; 
        height: 55px !important; 
        min-height: auto !important; 
    }
    
    .lp-trial-banner::before {
        width: 4px !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        border-radius: 10px 0 0 10px !important;
    }
    
    .lp-trial-banner > div:first-child {
        width: auto !important;
        justify-content: flex-start !important;
    }

    .lp-trial-icon {
        font-size: 15px !important;
        margin-right: 5px !important;
    }

    .lp-trial-text {
        font-size: 9px !important;
        letter-spacing: 0px !important;
    }
    
    .lp-trial-timer { 
        width: auto !important; 
        justify-content: flex-end !important; 
        gap: 4px !important; 
        flex-wrap: nowrap !important;
    }
    
    .lp-time-box { 
        padding: 0px 5px !important; 
        min-width: 30px !important; 
        font-size: 11px !important; 
    }
    
    .lp-time-label {
        font-size: 7px !important;
    }
}
