/* ==========================================================================
   Smart School ERP - Authentication Module Stylesheet (Login & Register)
   Design Inspiration: Modern macOS Browser Window Mockup + 3D Educational Art
   Vibrant yellow/gold canvas, browser chrome, top header banner, input icons,
   green Sign In CTA, blue Create Account CTA.
   ========================================================================== */

.auth-page-body {
    margin: 0;
    padding: 30px 16px;
    min-height: calc(100vh - 64px);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: #fef08a; /* Warm vibrant modern yellow/gold base */
    background: radial-gradient(circle at 15% 20%, #fef9c3 0%, #fef08a 45%, #fde047 100%);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Background Artwork Showcase & Floating Orbs */
.auth-bg-art-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.auth-bg-art-layer .bg-art-left {
    position: absolute;
    left: -40px;
    bottom: -30px;
    width: 440px;
    max-width: 35vw;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 25px 35px rgba(161, 98, 7, 0.25));
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.auth-bg-art-layer .bg-art-right {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    max-width: 38vw;
    opacity: 0.92;
    filter: drop-shadow(0 30px 45px rgba(161, 98, 7, 0.28));
    border-radius: 24px;
}

/* Subtle Geometric Decorative Accents matching mockup */
.auth-bg-decor-1 {
    position: absolute;
    top: 40px;
    left: 80px;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(234, 88, 12, 0.25);
    border-radius: 50%;
}

.auth-bg-decor-2 {
    position: absolute;
    bottom: 60px;
    right: 90px;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(37, 99, 235, 0.22);
    border-radius: 14px;
    transform: rotate(25deg);
}

.auth-bg-code-mark {
    position: absolute;
    top: 80px;
    right: 120px;
    font-size: 32px;
    font-weight: 900;
    color: rgba(30, 58, 138, 0.15);
    font-family: monospace;
    user-select: none;
}

/* Main Container */
.auth-main-shell {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    padding: 30px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* macOS Browser Window Mockup */
.browser-window-mockup {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(30, 41, 59, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browser-window-mockup:hover {
    box-shadow: 0 30px 70px -15px rgba(30, 41, 59, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Browser Chrome Header (Dots & URL Bar) */
.browser-chrome-bar {
    height: 44px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}

.browser-window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.window-dot.dot-red {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.window-dot.dot-yellow {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.window-dot.dot-green {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.browser-address-pill {
    flex: 1;
    background: #ffffff;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-address-pill i {
    font-size: 10px;
    color: #94a3b8;
}

.browser-address-pill span {
    font-family: monospace;
    font-weight: 500;
}

.browser-actions-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

/* Card Body Inside Browser Window */
.auth-window-body {
    padding: 24px 28px 30px;
    background: #ffffff;
}

/* Top Header Banner (Matches Image 4 & Image 5) */
.auth-portal-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1e3a8a 100%);
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-portal-banner::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -50px;
    right: -40px;
    pointer-events: none;
}

.auth-portal-banner-icon {
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 6px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.auth-portal-banner h2 {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 3px 0;
    color: #ffffff;
}

.auth-portal-banner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    font-weight: 500;
}

/* Sky-Blue Info Callout Pill (Matches Image 4) */
.auth-info-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
}

.auth-info-callout-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Interactive Multi-Role Login Switcher Tabs */
.auth-role-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.auth-role-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}
.auth-role-tab i {
    font-size: 16px;
    transition: transform 0.18s ease;
}
.auth-role-tab:hover:not(.active) {
    background: #e2e8f0;
    color: #0f172a;
}
.auth-role-tab:hover:not(.active) i {
    transform: scale(1.1);
}
.auth-role-tab.active {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.auth-role-tab.active i {
    color: #2563eb;
}
.auth-role-tab.std.active { color: #6d28d9; }
.auth-role-tab.std.active i { color: #7c3aed; }
.auth-role-tab.grd.active { color: #0e7490; }
.auth-role-tab.grd.active i { color: #0891b2; }
.auth-role-tab.tch.active { color: #047857; }
.auth-role-tab.tch.active i { color: #059669; }
.auth-role-tab.adm.active { color: #1e3a8a; }
.auth-role-tab.adm.active i { color: #2563eb; }

@media (max-width: 480px) {
    .auth-role-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .auth-role-tab {
        flex-direction: row;
        gap: 6px;
        padding: 9px 8px;
        font-size: 12.5px;
    }
}

/* Alert Error Banner */
.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Groups & Inputs with Icons */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-field-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    text-transform: capitalize;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.15s ease;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-input:hover {
    border-color: #94a3b8;
}

.auth-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #0284c7;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #0f172a;
}

/* Options Row: Remember Me & Forgot Password (Matches Image 4) */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 6px 0;
}

.auth-remember-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 !important;
}

.auth-forgot-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.auth-forgot-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Action Buttons (Matches Image 4) */
.auth-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 6px;
}

/* Vivid Green Sign In Button (Image 4 exact) */
.auth-btn-signin {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #16a34a;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
    transition: all 0.15s ease;
    text-decoration: none;
}

.auth-btn-signin:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.auth-btn-signin:active {
    transform: translateY(0);
}

/* Vivid Blue Create Account / Submit Button (Image 4 exact) */
.auth-btn-create {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: #0284c7;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.15s ease;
    text-decoration: none;
}

.auth-btn-create:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}

.auth-btn-outline {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.auth-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Footer & Back to Home */
.auth-footer-bar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 6px;
    font-size: 12.5px;
    color: #713f12;
}

.auth-footer-bar a {
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-bar a:hover {
    text-decoration: underline;
}

/* Desktop Split Layout (When Viewport is Wide) */
@media (min-width: 1100px) {
    .auth-page-body {
        padding: 40px 60px;
    }

    .auth-desktop-grid {
        display: grid;
        grid-template-columns: 1fr 490px;
        gap: 60px;
        align-items: center;
        max-width: 1160px;
        width: 100%;
        margin: auto;
        position: relative;
        z-index: 10;
    }

    .auth-showcase-panel {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .auth-showcase-header h1 {
        font-size: 44px;
        font-weight: 900;
        letter-spacing: -0.03em;
        line-height: 1.1;
        color: #1e3a8a;
        margin: 0 0 14px 0;
    }

    .auth-showcase-header p {
        font-size: 17px;
        line-height: 1.6;
        color: #475569;
        margin: 0 0 20px 0;
        max-width: 500px;
    }

    .auth-feature-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .auth-feature-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px);
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid rgba(251, 191, 36, 0.4);
        font-size: 13.5px;
        font-weight: 700;
        color: #1e3a8a;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    }

    .auth-showcase-image-wrap {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 45px -10px rgba(161, 98, 7, 0.35);
        border: 4px solid #ffffff;
        max-width: 520px;
    }

    .auth-showcase-image-wrap img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 1099px) {
    .auth-desktop-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .auth-showcase-panel {
        display: none;
    }
}

/* ==========================================================================
   Professional Sticky-Top Navigation Header for Auth Pages (Login & Register)
   ========================================================================== */
.auth-sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.auth-header-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease;
}

.auth-header-brand:hover {
    transform: translateY(-1px);
}

.auth-header-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #FFFFFF;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.28);
}

.auth-header-brand-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1E3A8A;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.auth-header-brand-copy small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.2;
}

.auth-header-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.auth-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.16s ease;
}

.auth-header-link:hover {
    color: #1E3A8A;
    background: #F1F5F9;
}

.auth-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-header-language-pill {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.auth-lang-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.16s ease;
}

.auth-lang-btn:hover:not(.active) {
    color: #0F172A;
    background: #E2E8F0;
}

.auth-lang-btn.active {
    background: #1E3A8A;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

.auth-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    background: #2563EB;
    color: #FFFFFF !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.auth-header-cta:hover {
    background: #1D4ED8;
    box-shadow: 0 5px 14px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .auth-header-links {
        display: none;
    }
    .auth-header-shell {
        padding: 0 14px;
        height: 56px;
    }
    .auth-header-brand-copy small {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-page-body {
        padding: 16px 12px 30px !important;
    }

    .browser-window-mockup {
        border-radius: 14px !important;
    }

    .auth-window-body {
        padding: 16px 14px 22px !important;
    }

    .browser-actions-icons {
        display: none !important;
    }

    .auth-portal-banner {
        padding: 16px 14px !important;
    }

    .auth-portal-banner h2 {
        font-size: 19px !important;
    }

    .auth-demo-grid {
        grid-template-columns: 1fr !important;
    }
}



