        /* ═══════════════════════════════════════════════════════════════════
           auth-login-inline.css  — XplagiaX MarkTrack
           Layout model:
             .auth-wrapper (flex row)
               ├── .forms-area   (flex:1, position:relative, overflow:hidden)
               │     ├── .panel-professor  (position:absolute, fills forms-area)
               │     └── .panel-student   (position:absolute, fills forms-area)
               └── .overlay-container (flex:1, in-flow — never moves)
        ══════════════════════════════════════════════════════════════════════ */

        :root {
            --primary:           #2563eb;
            --primary-dark:      #1d4ed8;
            --primary-light:     #3b82f6;
            --student-primary:   #7c3aed;
            --student-dark:      #6d28d9;
            --student-light:     #8b5cf6;
            --bg-gradient-start: #0f172a;
            --bg-gradient-end:   #1e293b;
            --card-bg:           rgba(255, 255, 255, 0.03);
            --card-border:       rgba(255, 255, 255, 0.08);
            --text-primary:      #f8fafc;
            --text-secondary:    #94a3b8;
            --text-muted:        #64748b;
            --error:             #ef4444;
            --success:           #22c55e;

            /* Animation */
            --anim-dur:    580ms;
            --anim-ease:   cubic-bezier(0.76, 0, 0.24, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background: radial-gradient(circle at 12% 12%, #4a7298 0%, #2a3b55 40%, #5d4a4a 80%, #7a6050 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            color: var(--text-primary);
        }

        /* ── Ambient background glow (unchanged from original) ─────────────── */
        .bg-glow {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }
        .bg-glow::before,
        .bg-glow::after {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.15;
            animation: float 20s ease-in-out infinite;
        }
        .bg-glow::before { background: var(--primary); top: -300px; left: -300px; }
        .bg-glow::after  { background: #3b82f6; bottom: -300px; right: -300px; animation-delay: -10s; }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50%       { transform: translate(50px, 30px) scale(1.1); }
        }

        /* ═══════════════════════════════════════════════════════════════════
           AUTH WRAPPER — outer card (unchanged visual)
        ══════════════════════════════════════════════════════════════════════ */
        .auth-wrapper {
            position: relative;
            z-index: 1;
            width: 1000px;
            max-width: 95vw;
            height: 650px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            backdrop-filter: blur(20px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: flex;              /* flex row */
            flex-direction: row;
            overflow: hidden;
            margin: 20px 0;
        }

        /* ═══════════════════════════════════════════════════════════════════
           FORMS AREA — left half of the card
           Contains both panels; panels animate inside via translateX.
        ══════════════════════════════════════════════════════════════════════ */
        .forms-area {
            flex: 1;                    /* occupies left 50% */
            position: relative;         /* stacking context for absolute panels */
            overflow: hidden;           /* clips sliding panels */
            min-width: 0;
        }

        /* ═══════════════════════════════════════════════════════════════════
           PANELS — both fill the forms-area exactly
        ══════════════════════════════════════════════════════════════════════ */
        .form-box {
            position: absolute;
            inset: 0;                   /* top/right/bottom/left = 0 */
            padding: 44px 56px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: rgba(15, 23, 42, 0.2);
            overflow-y: auto;
            /* GPU-composited animation */
            transition:
                transform var(--anim-dur) var(--anim-ease),
                opacity   var(--anim-dur) var(--anim-ease);
            will-change: transform, opacity;
        }

        /* Professor — default: visible, centred */
        .panel-professor {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }

        /* Student — default: hidden off to the RIGHT */
        .panel-student {
            transform: translateX(100%);
            opacity: 0;
            visibility: hidden;
        }

        /* ── Animation states (class-based, toggled by JS) ──────────────── */

        /* Professor slides out to the LEFT when student is shown */
        .panel-professor.panel--exit-left {
            transform: translateX(-100%);
            opacity: 0;
        }

        /* Student arrives from the RIGHT — initial position before activation */
        .panel-student.panel--enter-right {
            transform: translateX(100%);
            opacity: 0;
            visibility: visible;
        }

        /* Student fully active — centre position */
        .panel-student.panel--enter-right.panel--active {
            transform: translateX(0);
            opacity: 1;
        }

        /* Professor arrives from the LEFT when reverting */
        .panel-professor.panel--enter-left {
            transform: translateX(-100%);
            opacity: 0;
            visibility: visible;
        }

        /* Student slides out to the RIGHT when professor is restored */
        .panel-student.panel--exit-right {
            transform: translateX(100%);
            opacity: 0;
        }

        /* ═══════════════════════════════════════════════════════════════════
           OVERLAY CONTAINER — right half of the card (in-flow flex child)
           This element NEVER moves — it's a normal flex sibling.
           Visual switching is done entirely through image + text crossfades.
        ══════════════════════════════════════════════════════════════════════ */
        .overlay-container {
            flex: 1;                    /* occupies right 50% */
            position: relative;
            overflow: hidden;
            border-left: 1px solid var(--card-border);
        }

        /* ── Branding images (stacked, crossfade via opacity) ─────────────── */
        .overlay-img {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            transition: opacity var(--anim-dur) var(--anim-ease);
            will-change: opacity;
        }
        .overlay-img--professor {
            background-image: url('/static/brain/auth_branding_image_signin.png');
            opacity: 1;
        }
        .overlay-img--student {
            background-image: url('/static/brain/auth_branding_image_signin_students.png');
            opacity: 0;
        }

        /* ── Gradient tint (morphs colour on role switch) ─────────────────── */
        .overlay-tint {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(37, 99, 235, 0.38) 100%);
            z-index: 1;
            transition: background var(--anim-dur) var(--anim-ease);
        }
        .auth-wrapper.role--student .overlay-tint {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(124, 58, 237, 0.38) 100%);
        }

        /* ── Overlay text content ─────────────────────────────────────────── */
        .overlay-content {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 40px;
            color: white;
            transition:
                opacity   var(--anim-dur) var(--anim-ease),
                transform var(--anim-dur) var(--anim-ease);
            will-change: opacity, transform;
        }
        /* Student overlay text starts invisible */
        .overlay-content--student {
            opacity: 0;
            transform: translateY(8px);
        }

        .overlay-content h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            margin-top: 1rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }
        .overlay-content p {
            font-size: 1rem;
            opacity: 0.9;
            line-height: 1.65;
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
        }

        /* ── Role badge chip ──────────────────────────────────────────────── */
        .overlay-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(37, 99, 235, 0.22);
            border: 1px solid rgba(59, 130, 246, 0.32);
            color: #93c5fd;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            padding: 6px 14px;
            border-radius: 100px;
            backdrop-filter: blur(8px);
        }
        .overlay-badge--student {
            background: rgba(124, 58, 237, 0.22);
            border-color: rgba(139, 92, 246, 0.32);
            color: #c4b5fd;
        }

        /* ═══════════════════════════════════════════════════════════════════
           FORM ELEMENTS — preserved from original design
        ══════════════════════════════════════════════════════════════════════ */
        .app-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
            margin: 0 auto 20px auto;
            flex-shrink: 0;
        }
        .app-icon--student {
            background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
            box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35), 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        .icon-svg { color: white; }

        .form-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 5px;
        }

        h1 {
            font-size: 1.75rem;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .subtitle {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .form-group { margin-bottom: 1.1rem; }

        label {
            display: block;
            margin-bottom: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            color: #ffffff;
            opacity: 1;
        }

        input {
            width: 100%;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.2s;
        }
        input:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
        .panel-student input:focus {
            border-color: var(--student-primary);
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
        }
        input::placeholder { color: var(--text-muted); }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 22px;
            font-size: 0.85rem;
        }
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            cursor: pointer;
        }
        .checkbox-group input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
            cursor: pointer;
        }
        .forgot-link {
            color: var(--primary-light);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.82rem;
        }
        .forgot-link:hover { text-decoration: underline; }

        /* ── CTA buttons ──────────────────────────────────────────────────── */
        .btn-primary {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            margin-bottom: 18px;
            font-family: 'Inter', sans-serif;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
        }
        .btn-primary:disabled { opacity: 0.65; transform: none; cursor: not-allowed; }

        .btn-primary--student {
            background: linear-gradient(135deg, var(--student-primary) 0%, var(--student-dark) 100%);
        }
        .btn-primary--student:hover {
            box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.5);
        }

        /* ── Divider ──────────────────────────────────────────────────────── */
        .divider {
            position: relative;
            text-align: center;
            margin: 10px 0;
        }
        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--card-border);
        }
        .divider span {
            position: relative;
            background: #161e32;
            padding: 0 10px;
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ── OAuth ────────────────────────────────────────────────────────── */
        .oauth-group {
            display: flex;
            gap: 12px;
        }
        .btn-oauth {
            flex: 1;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            color: var(--text-primary);
        }
        .btn-oauth:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--text-muted);
        }
        .btn-oauth svg { width: 18px; height: 18px; }

        /* ═══════════════════════════════════════════════════════════════════
           ROLE SWITCHER — bottom of each panel
        ══════════════════════════════════════════════════════════════════════ */
        .role-switch-hint {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 18px;
            font-size: 0.79rem;
            color: var(--text-muted);
        }
        .role-switch-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: none;
            border: none;
            color: var(--primary-light);
            font-size: 0.79rem;
            font-weight: 600;
            cursor: pointer;
            padding: 3px 8px;
            border-radius: 6px;
            font-family: 'Inter', sans-serif;
            transition: background 0.2s, color 0.2s;
        }
        .role-switch-btn svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            transition: transform 0.2s;
        }
        .role-switch-btn:hover {
            background: rgba(59, 130, 246, 0.12);
            color: #93c5fd;
        }
        .role-switch-btn:hover svg { transform: translateX(3px); }
        .role-switch-btn--back:hover svg { transform: translateX(-3px); }

        /* Student panel — violet accent on switcher */
        .panel-student .role-switch-btn { color: var(--student-light); }
        .panel-student .role-switch-btn:hover {
            background: rgba(139, 92, 246, 0.12);
            color: #c4b5fd;
        }

        /* ═══════════════════════════════════════════════════════════════════
           STUDENT INLINE ERROR / SUCCESS BOXES
        ══════════════════════════════════════════════════════════════════════ */
        .auth-error-box {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fca5a5;
            font-size: 0.82rem;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 14px;
            display: none;
        }
        .auth-success-box {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.25);
            color: #86efac;
            font-size: 0.82rem;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 14px;
        }
        .hw-login-footer-note {
            text-align: center;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-top: 4px;
        }

        /* ═══════════════════════════════════════════════════════════════════
           NOTIFICATION TOAST (unchanged from original)
        ══════════════════════════════════════════════════════════════════════ */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 16px 24px;
            border-radius: 12px;
            color: white;
            font-weight: 500;
            z-index: 1000;
            transform: translateX(120%);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        }
        .notification.show    { transform: translateX(0); }
        .notification-success { background: var(--success); }
        .notification-error   { background: var(--error); }

        /* ═══════════════════════════════════════════════════════════════════
           RESPONSIVE — same breakpoint as original (900px)
        ══════════════════════════════════════════════════════════════════════ */
        /* ═══════════════════════════════════════════════════════════════════
           FOOTER — Powered by Uryx
        ══════════════════════════════════════════════════════════════════════ */
        .footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: rgba(255, 255, 255, 0);
            text-align: center;
            padding: 15px 0;
            font-size: 14px; /* Scaled down slightly for better fit, but keeping 18px-ish vibe */
            color: rgba(255, 255, 255, 0.4); /* Overriding #32353c for better visibility on dark bg, but can use user's if preferred */
            z-index: 100;
            font-weight: 500;
            pointer-events: none;
        }
        .footer img {
            height: 20px;
            vertical-align: middle;
            margin: 0 6px;
            opacity: 0.8;
            filter: brightness(0) invert(1); /* Make logo white for dark theme */
        }

        @media (max-width: 900px) {
            body {
                padding: 20px;
            }
            .auth-wrapper {
                width: 100%;
                max-width: 450px;
                height: auto;
                flex-direction: column;
                margin: 0 auto;
            }
            .forms-area {
                height: 620px;      /* give a fixed height so absolute panels render */
                border-radius: 24px;
            }
            .overlay-container {
                display: none;      /* same as original */
            }
            .form-box {
                padding: 40px 30px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 0;
            }
            .auth-wrapper {
                max-width: 100%;
                height: 100vh;
                border-radius: 0;
                border: none;
                margin: 0;
            }
            .forms-area {
                height: 100vh;
                border-radius: 0;
            }
            .form-box {
                padding: 30px 20px;
            }
            h2 {
                font-size: 1.5rem;
            }
            .app-icon svg {
                width: 30px;
                height: 30px;
            }
        }
