
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

.auth-screen {
    --st-ink: #0d2a2c;
    --st-teal-900: #0a3436;
    --st-teal-800: #0f4547;
    --st-teal-700: #146264;
    --st-amber: #f2a83c;
    --st-amber-dark: #d98a1f;
    --st-cream: #f6f3ec;
    --st-surface: #ffffff;
    --st-border: #e7e1d3;
    --st-text-2: #45514f;
    --st-text-3: #8a938e;
    --st-danger: #e0553f;
    --st-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --st-font-body: 'Inter', sans-serif;
    --st-font-mono: 'JetBrains Mono', monospace;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: var(--st-cream);
    font-family: var(--st-font-body);
    color: var(--st-ink);
    overflow-y: auto;
    transition: opacity .4s ease, transform .4s ease;
}

    .auth-screen.auth-hiding {
        opacity: 0;
        transform: scale(1.03);
        pointer-events: none;
    }

/* ---------------------------------------------------------
   LEFT — brand / illustration panel
--------------------------------------------------------- */
/* Core Layout with Extremely Light Background */
.education-theme-light-airy {
    position: relative;
    background-color: #fafbfc !important; /* Soft, bright, clean off-white */
    color: #4a5568;
    overflow: hidden;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(123, 146, 164, 0.1);
}

    /* Background Soft Pastel Accents */
    .education-theme-light-airy .auth-shape {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        z-index: 1;
    }

        .education-theme-light-airy .auth-shape.s1 {
            top: -10%;
            left: -10%;
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, rgba(176, 196, 222, 0.2) 0%, rgba(255,255,255,0) 70%); /* Soft Ice Blue */
        }

        .education-theme-light-airy .auth-shape.s2 {
            bottom: -5%;
            right: -5%;
            width: 350px;
            height: 350px;
            background: radial-gradient(circle, rgba(227, 193, 111, 0.12) 0%, rgba(255,255,255,0) 70%); /* Muted Champagne Gold */
        }

    /* Header & Text Styling */
    .education-theme-light-airy .auth-eyebrow {
        color: #607d8b; /* Soft Slate Gray */
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
        position: relative;
        z-index: 2;
    }

    .education-theme-light-airy .auth-panel-title {
        color: #2d3748;
        font-size: 2.1rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 1.25rem;
        position: relative;
        z-index: 2;
    }

        .education-theme-light-airy .auth-panel-title span {
            color: #4a5568;
            position: relative;
            display: inline-block;
        }

            /* Very subtle warm gold underline accent */
            .education-theme-light-airy .auth-panel-title span::after {
                content: '';
                position: absolute;
                left: 0;
                bottom: 2px;
                width: 100%;
                height: 3px;
                background-color: #e3c16f;
                border-radius: 2px;
                opacity: 0.5;
            }

    .education-theme-light-airy .auth-panel-sub {
        color: #718096; /* Very easy to read, lighter gray text */
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        position: relative;
        z-index: 2;
        max-width: 90%;
    }

    /* Stats Styling */
    .education-theme-light-airy .auth-stat-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        position: relative;
        z-index: 2;
        border-top: 1px solid rgba(176, 196, 222, 0.2);
        padding-top: 1.5rem;
    }

    .education-theme-light-airy .auth-stat b {
        color: #4a5568; /* Clean Slate Core */
        font-size: 1.5rem;
        font-weight: 700;
    }

    .education-theme-light-airy .auth-stat span {
        color: #a0aec0;
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Bright Light-washed Image Container */
.auth-featured-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(95%);
}

/* Generates a bright, clean whitewash overlay so the image stays light and airy */
.image-light-wash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(250, 251, 252, 0.2) 0%, rgba(250, 251, 252, 0.65) 100%);
}

/* Minimalist emblem watermark position */
.academic-emblem {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 240px;
    height: 240px;
    opacity: 0.25; /* Highly transparent, soft visual guide */
    z-index: 1;
    transform: rotate(8deg);
    pointer-events: none;
}
/* Premium Light Base Container */
.premium-edu-light {
    position: relative;
    background-color: #fcfbfa !important; /* Premium Warm Alabaster White */
    color: #3e4854;
    overflow: hidden;
    /*    border-radius: 20px;*/
    box-sizing: border-box;
    box-shadow: 0 10px 40px -10px rgba(184, 174, 159, 0.15);
    border: 1px solid rgba(220, 178, 101, 0.15);
}

    .premium-edu-light .auth-shape {
        position: absolute;
        border-radius: 100%;
        filter: blur(100px);
        z-index: 1;
        pointer-events: none;
    }

        .premium-edu-light .auth-shape.glow-soft-gold {
            top: -15%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(220, 178, 101, 0.12) 0%, rgba(255,255,255,0) 70%);
        }

        .premium-edu-light .auth-shape.glow-soft-blue {
            bottom: -15%;
            left: -10%;
            width: 450px;
            height: 450px;
            background: radial-gradient(circle, rgba(140, 155, 165, 0.1) 0%, rgba(255,255,255,0) 70%);
        }

        .premium-edu-light .auth-shape.glow-center-white {
            top: 20%;
            left: 20%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255,255,255,0) 60%);
        }

    /* Typography Overrides */
    .premium-edu-light .auth-eyebrow {
        color: #8c9ba5; /* Fine Slate Blue */
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 0.85rem;
        position: relative;
        z-index: 2;
    }

    .

/* Beautiful Rounded Glassmorphic Image Container */
.auth-featured-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.25rem;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.auth-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.02) contrast(1.02);
}

/* Soft white gradient with slight gold tint over the image */
.image-premium-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(252, 251, 250, 0.05) 0%, rgba(252, 251, 250, 0.5) 100%);
}

/* Soft Watermark Crest on Background Layer */
.academic-emblem {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 280px;
    height: 280px;
    opacity: 0.22;
    z-index: 1;
    transform: rotate(6deg);
    pointer-events: none;
}
/* ---------------------------------------------------------
   RIGHT — form panel
--------------------------------------------------------- */
.auth-form-panel {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--st-cream);
    min-height: 100%;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 36px 34px 30px;
    box-shadow: 0 30px 60px -20px rgba(13,42,44,.18);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.auth-logo {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--st-teal-700), var(--st-teal-900));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -6px rgba(20,98,100,.55);
    overflow: hidden;
}

    .auth-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.auth-brand-name {
    font-family: var(--st-font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--st-ink);
    line-height: 1.25;
}

.auth-brand-sub {
    font-size: 11px;
    color: var(--st-text-3);
    margin-top: 2px;
    line-height: 1.4;
}

.auth-welcome {
    margin-bottom: 22px;
}

.auth-welcome-title {
    font-family: var(--st-font-display);
    font-size: 23px;
    font-weight: 700;
    color: var(--st-ink);
}

.auth-welcome-sub {
    font-size: 13.5px;
    color: var(--st-text-2);
    margin-top: 4px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--st-font-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--st-text-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-forgot {
    font-family: var(--st-font-body);
    font-size: 12px;
    color: var(--st-teal-700);
    text-decoration: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

    .auth-forgot:hover {
        text-decoration: underline;
    }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--st-text-3);
    pointer-events: none;
    flex-shrink: 0;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border: 1.5px solid var(--st-border);
    border-radius: 11px;
    background: #fbfaf6;
    color: var(--st-ink);
    font-size: 14px;
    font-family: var(--st-font-body);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}

    .auth-input:focus {
        border-color: var(--st-teal-700);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(20,98,100,.12);
    }

    .auth-input::placeholder {
        color: var(--st-text-3);
    }

.auth-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--st-text-3);
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 7px;
    transition: color .15s, background .15s;
}

    .auth-eye:hover {
        color: var(--st-ink);
        background: var(--st-border);
    }

.auth-remember {
    margin: 4px 0 22px;
}

.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--st-text-2);
    cursor: pointer;
    line-height: 1.5;
}

    .auth-check-label input[type="checkbox"] {
        display: none;
    }

.auth-checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--st-border);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: background .15s, border-color .15s;
    background: #fbfaf6;
    position: relative;
}

.auth-check-label input:checked + .auth-checkmark {
    background: var(--st-teal-700);
    border-color: var(--st-teal-700);
}

    .auth-check-label input:checked + .auth-checkmark::after {
        content: '';
        width: 9px;
        height: 5px;
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(-45deg) translateY(-1px);
        display: block;
    }

.auth-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--st-amber), var(--st-amber-dark));
    color: var(--st-ink);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--st-font-body);
    transition: filter .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 10px 22px -8px rgba(217,138,31,.6);
}

    .auth-btn:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
    }

    .auth-btn:active {
        transform: translateY(0);
    }

    .auth-btn.loading .auth-btn-text::after {
        content: '...';
    }

.auth-btn-icon {
    transition: transform .2s;
}

.auth-btn:hover .auth-btn-icon {
    transform: translateX(3px);
}

.auth-error {
    min-height: 20px;
    font-size: 12px;
    color: var(--st-danger);
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    color: #7c8c8d;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

    .auth-footer a {
        color: var(--st-teal-700);
        font-weight: 700;
        text-decoration: none;
        transition: color .2s ease, opacity .2s ease;
    }

        .auth-footer a:hover {
            color: var(--st-amber-dark);
            text-decoration: none;
            opacity: .9;
        }

.input-error {
    border-color: var(--st-danger) !important;
    box-shadow: 0 0 0 3px rgba(224,85,63,.12);
}

.auth-field-error {
    margin-top: 5px;
    font-size: 11px;
    color: var(--st-danger);
    font-weight: 500;
    min-height: 14px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
    .auth-screen {
        grid-template-columns: 1fr;
    }

    .auth-bg-shapes {
        display: none;
    }

    .auth-form-panel {
        padding: 40px 20px;
    }

    .auth-footer {
        position: static;
        margin-top: 22px;
    }
}

@media (max-width: 520px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-welcome-title {
        font-size: 20px;
    }
}
