/* STREAMING_CHUNK:Defining ESAA.AI brand design tokens for authentication pages... */
/* ==========================================================================
   ESAA.AI - Enterprise Authentication Stylesheet (esaa-auth.css)
   Load AFTER design-system.css and site.css in _AuthLayout.cshtml.
   Designed for Login, Signup, Forgot Password, and Change Password pages.
   ========================================================================== */

:root {
    --esaa-navy: #050D26;
    --esaa-deep: #0A193B;
    --esaa-royal: #0052FF;
    --esaa-electric: #0094FF;
    --esaa-cyan: #00F2FE;
    --esaa-surface: #F4F8FF;
    --esaa-bg-daylight: #F8FAFC;
    --esaa-card-bg: #FFFFFF;
    --esaa-border-subtle: #E2E8F0;
    --esaa-border-focus: #0052FF;
    --esaa-text-main: #050D26;
    --esaa-text-body: #334155;
    --esaa-text-muted: #64748B;
    --esaa-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --esaa-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --esaa-shadow-card: 0 20px 50px -12px rgba(5, 13, 38, 0.08), 0 1px 3px rgba(5, 13, 38, 0.04);
    --esaa-shadow-btn: 0 10px 25px -5px rgba(0, 82, 255, 0.4);
    --esaa-focus-ring: 0 0 0 3.5px rgba(0, 82, 255, 0.16);
}

/* STREAMING_CHUNK:Overriding legacy body-login and wrapper-login rules... */
/* ---------- 1. Page & Body Reset (Overrides site.css without editing it) ---------- */
html,
body.body-login {
    height: auto !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--esaa-bg-daylight) !important;
    background-image: none !important;
    font-family: var(--esaa-font-sans) !important;
    color: var(--esaa-text-main) !important;
    -webkit-font-smoothing: antialiased;
}

.wrapper-login {
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* STREAMING_CHUNK:Styling the split-screen SaaS authentication layout... */
/* ---------- 2. Split-Screen Enterprise Auth Shell ---------- */
.esaa-auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--esaa-bg-daylight);
}

/* Left Showcase Panel (Matches ESAA.AI Website Hero Mesh) */
.esaa-auth-showcase {
    position: relative;
    width: 46%;
    min-height: 100vh;
    background-color: var(--esaa-navy);
    background-image: radial-gradient(at 15% 15%, rgba(0, 82, 255, 0.32) 0px, transparent 52%), radial-gradient(at 85% 25%, rgba(0, 242, 254, 0.20) 0px, transparent 50%), radial-gradient(at 50% 85%, rgba(0, 148, 255, 0.25) 0px, transparent 55%);
    color: #FFFFFF;
    padding: 3rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

    /* Subtle architectural grid overlay on left panel */
    .esaa-auth-showcase::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0.08;
        pointer-events: none;
        background-image: linear-gradient(to right, #00F2FE 1px, transparent 1px), linear-gradient(to bottom, #00F2FE 1px, transparent 1px);
        background-size: 44px 44px;
    }

.esaa-showcase-top,
.esaa-showcase-middle,
.esaa-showcase-bottom {
    position: relative;
    z-index: 2;
}

/* Brand Header in Left Panel */
.esaa-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.esaa-brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* If user prefers original colored logo on light pill in showcase */
.esaa-brand-pill {
    display: inline-flex;
    align-items: center;
    /*gap: 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.5rem 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);*/
}

    .esaa-brand-pill img {
        height: 50px;
        width: auto;
        object-fit: contain;
    }

.esaa-brand-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: var(--esaa-surface);
    color: var(--esaa-royal);
    border: 1px solid rgba(0, 82, 255, 0.2);
}

/* STREAMING_CHUNK:Styling showcase typography and live AI capability cards... */
.esaa-showcase-Status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--esaa-cyan);
    margin-bottom: 1.25rem;
}

.esaa-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--esaa-cyan);
    box-shadow: 0 0 10px var(--esaa-cyan);
    animation: esaaPulse 2s infinite;
}

@keyframes esaaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: 0.65;
    }
}

.esaa-showcase-title {
    font-family: var(--esaa-font-display);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.esaa-text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #A5F3FC 50%, #00F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.esaa-showcase-desc {
    font-size: 0.96rem;
    line-height: 1.65;
    color: #CBD5E1;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Glassmorphic Feature Cards on Left Panel */
.esaa-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    max-width: 510px;
}

.esaa-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background: rgba(10, 25, 59, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    .esaa-feature-item:hover {
        transform: translateX(4px);
        border-color: rgba(0, 242, 254, 0.45);
    }

.esaa-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.35), rgba(0, 242, 254, 0.25));
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--esaa-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.esaa-feature-item h5 {
    font-family: var(--esaa-font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.2rem 0;
}

.esaa-feature-item p {
    font-size: 0.8rem;
    color: #94A3B8;
    margin: 0;
    line-height: 1.45;
}

/* Showcase Footer Trust Strip */
.esaa-showcase-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    color: #94A3B8;
}

    .esaa-showcase-bottom a {
        color: #E2E8F0;
        font-weight: 600;
        text-decoration: none;
    }

        .esaa-showcase-bottom a:hover {
            color: var(--esaa-cyan);
        }

.esaa-trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .esaa-trust-badges span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: #CBD5E1;
        font-weight: 500;
    }

    .esaa-trust-badges i {
        color: var(--esaa-cyan);
    }

/* STREAMING_CHUNK:Styling the right-hand authentication workspace and card container... */
/* ---------- 3. Right-Hand Daylight Authentication Workspace ---------- */
.esaa-auth-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at 90% 10%, rgba(0, 82, 255, 0.04) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(0, 242, 254, 0.05) 0%, transparent 40%), var(--esaa-bg-daylight);
}

.esaa-stage-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 460px;
    width: 100%;
    margin: 0 auto 1rem auto;
}

.esaa-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--esaa-text-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid var(--esaa-border-subtle);
    transition: all 0.2s ease;
}

    .esaa-back-home:hover {
        color: var(--esaa-royal);
        border-color: rgba(0, 82, 255, 0.3);
        box-shadow: 0 4px 12px rgba(5, 13, 38, 0.05);
    }

.esaa-help-pill {
    font-size: 0.78rem;
    color: var(--esaa-text-muted);
}

    .esaa-help-pill a {
        color: var(--esaa-royal);
        font-weight: 600;
    }

.main-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0 !important;
}

#mainContent {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Alert Styling inside Auth Stage */
.esaa-auth-alert-wrap {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 1rem auto;
}

    .esaa-auth-alert-wrap .alert {
        border-radius: 12px;
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        box-shadow: 0 6px 20px -4px rgba(5, 13, 38, 0.08);
    }

/* STREAMING_CHUNK:Upgrading .login-wrapper, .signup-wrapper, .login-card, and .signup-card for universal page compatibility... */
/* ---------- 4. Universal Support for Login, Signup, Forgot & Change Password ---------- */
.login-wrapper,
.signup-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 0 !important;
    width: 100% !important;
}

    /* Brand Header Above Card */
    .login-wrapper > .logo,
    .signup-wrapper > .logo {
        text-align: center;
        margin-bottom: 1.35rem !important;
        width: 100%;
    }

        .login-wrapper > .logo img,
        .signup-wrapper > .logo img {
            height: 44px !important;
            width: auto;
            object-fit: contain;
            margin-bottom: 0.5rem;
        }

        .login-wrapper > .logo h1,
        .signup-wrapper > .logo h1 {
            font-family: var(--esaa-font-display) !important;
            font-size: 1.05rem !important;
            font-weight: 700 !important;
            color: var(--esaa-text-body) !important;
            letter-spacing: -0.01em;
            margin-top: 0.15rem !important;
            margin-bottom: 0 !important;
        }

/* Card Container: Cleanly neutralizes the heavy spinning .conic border while keeping subtle top accent */
.login-card,
.signup-card,
.login-card.conic,
.signup-card.conic {
    position: relative;
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    padding: 2.25rem 2.25rem !important;
    border-radius: 24px !important;
    background: var(--esaa-card-bg) !important;
    border: 1px solid var(--esaa-border-subtle) !important;
    box-shadow: var(--esaa-shadow-card) !important;
    overflow: hidden;
}

    /* Replace legacy rotating conic pseudo-elements with a crisp ESAA gradient top bar */
    .login-card.conic::before,
    .signup-card.conic::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 4px !important;
        background: linear-gradient(90deg, var(--esaa-royal) 0%, var(--esaa-electric) 50%, var(--esaa-cyan) 100%) !important;
        animation: none !important;
        z-index: 2 !important;
    }

    .login-card.conic::after,
    .signup-card.conic::after {
        display: none !important;
    }

    .login-card h4,
    .signup-card h4 {
        font-family: var(--esaa-font-display) !important;
        font-size: 1.45rem !important;
        font-weight: 800 !important;
        color: var(--esaa-text-main) !important;
        text-align: center;
        margin-bottom: 0.35rem !important;
        letter-spacing: -0.02em;
    }

.esaa-card-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--esaa-text-muted);
    margin-bottom: 1.5rem;
}

/* STREAMING_CHUNK:Styling SSO provider buttons (Google, Microsoft, Facebook)... */
/* ---------- 5. Social / SSO Provider Buttons ---------- */
.providers-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    width: 100%;
    margin-bottom: 0.25rem;
}

.provider-box {
    width: 100% !important;
    height: 48px !important;
    padding: 0 0.75rem !important;
    border: 1px solid var(--esaa-border-subtle) !important;
    border-radius: 12px !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(5, 13, 38, 0.03) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

    .provider-box:hover {
        background-color: var(--esaa-surface) !important;
        border-color: rgba(0, 82, 255, 0.35) !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 15px -3px rgba(0, 82, 255, 0.12) !important;
    }

    .provider-box:active {
        transform: translateY(0);
    }

.provider-icon {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

    .provider-icon svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.provider-box .box-name {
    font-family: var(--esaa-font-sans) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--esaa-text-main) !important;
    padding: 0 !important;
}

/* Divider ("Or continue with email") */
.esaa-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.35rem 0;
    color: var(--esaa-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

    .esaa-auth-divider::before,
    .esaa-auth-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--esaa-border-subtle);
    }

    .esaa-auth-divider span {
        padding: 0 0.85rem;
    }

/* STREAMING_CHUNK:Styling form inputs, icons, password visibility toggle, and primary CTA button... */
/* ---------- 6. Form Controls, Input Icons & Validation ---------- */
.esaa-form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}

.esaa-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--esaa-text-body);
    margin-bottom: 0.4rem;
}

.esaa-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.esaa-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.login-card .form-control,
.signup-card .form-control {
    height: 46px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--esaa-text-main);
    background-color: #F8FAFC;
    border: 1.5px solid var(--esaa-border-subtle);
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 100%;
}

.esaa-input-wrap .form-control {
    padding-left: 2.65rem;
}

    .esaa-input-wrap .form-control.has-toggle {
        padding-right: 2.75rem;
    }

.login-card .form-control::placeholder,
.signup-card .form-control::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.login-card .form-control:hover,
.signup-card .form-control:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

.login-card .form-control:focus,
.signup-card .form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--esaa-royal) !important;
    box-shadow: var(--esaa-focus-ring) !important;
    outline: none;
}

.esaa-input-wrap:focus-within .esaa-input-icon {
    color: var(--esaa-royal);
}

/* Password Eye Toggle Button */
.esaa-pwd-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #64748B;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

    .esaa-pwd-toggle:hover {
        color: var(--esaa-royal);
        background-color: var(--esaa-surface);
    }

/* Validation Error Messages */
.field-validation-error,
.login-card .text-danger,
.signup-card .text-danger {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    color: #DC2626 !important;
    margin-top: 0.35rem;
}

.input-validation-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
}

/* Remember Me & Forgot Password Row */
.esaa-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0 1.25rem 0;
    font-size: 0.84rem;
}

.esaa-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--esaa-text-body);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

    .esaa-checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        accent-color: var(--esaa-royal);
        cursor: pointer;
    }

.esaa-forgot-link {
    font-weight: 600;
    color: var(--esaa-royal) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .esaa-forgot-link:hover {
        color: var(--esaa-navy) !important;
        text-decoration: underline;
    }

/* Primary Submit Button (Matches Website .btn-esaa-primary) */
.actions .btn-primary,
.esaa-btn-submit {
    height: 48px;
    width: 100%;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0052FF 0%, #0094FF 55%, #00E1FF 100%) !important;
    color: #FFFFFF !important;
    font-family: var(--esaa-font-sans);
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    box-shadow: var(--esaa-shadow-btn) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .actions .btn-primary:hover,
    .esaa-btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -6px rgba(0, 148, 255, 0.55) !important;
        filter: brightness(1.03);
    }

    .actions .btn-primary:active,
    .esaa-btn-submit:active {
        transform: translateY(0);
    }

/* Card Footers & Links */
.login-footer {
    font-size: 0.84rem !important;
    color: var(--esaa-text-muted) !important;
}

    .login-footer a {
        font-weight: 700;
        color: var(--esaa-royal) !important;
        text-decoration: none;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

.esaa-legal-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--esaa-border-subtle);
    font-size: 0.78rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

    .esaa-legal-links a {
        color: var(--esaa-text-muted) !important;
        font-weight: 500;
        text-decoration: none;
    }

        .esaa-legal-links a:hover {
            color: var(--esaa-royal) !important;
        }

/* Right Stage Bottom Footer */
.footer-div {
    padding: 1rem 0 0.25rem 0;
    font-size: 0.78rem !important;
    color: var(--esaa-text-muted) !important;
}

    .footer-div a {
        color: var(--esaa-text-body) !important;
        font-weight: 600;
    }

        .footer-div a:hover {
            color: var(--esaa-royal) !important;
        }

/* STREAMING_CHUNK:Adding responsive breakpoints for tablet and mobile screens... */
/* ---------- 7. Responsive Adjustments ---------- */
@media (max-width: 991.98px) {
    .esaa-auth-shell {
        flex-direction: column;
    }

    .esaa-auth-showcase {
        display: none; /* Keep mobile focused cleanly on the login/auth card */
    }

    .esaa-auth-stage {
        min-height: 100vh;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .login-card,
    .signup-card,
    .login-card.conic,
    .signup-card.conic {
        padding: 1.75rem 1.35rem !important;
        border-radius: 20px !important;
    }

    .providers-container {
        gap: 0.5rem !important;
    }

    .provider-box .box-name {
        font-size: 0.76rem !important;
    }
}
