/* =====================================================
   CheckClassJob - Premium Split-Screen Login UX/UI v2.5
   Modern Glassmorphism + Mobile-First + High Security
   ===================================================== */

:root {
    --login-primary: #6366f1;
    --login-primary-dark: #4f46e5;
    --login-secondary: #8b5cf6;
    --login-accent: #06b6d4;
    --login-accent-glow: rgba(6, 182, 212, 0.35);
    
    --login-bg-from: #09090b;
    --login-bg-mid: #18181b;
    --login-bg-to: #0f172a;
    
    --card-bg: rgba(24, 24, 27, 0.72);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-glow: rgba(99, 102, 241, 0.2);
    
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.14);
    --input-focus-border: #6366f1;
    --input-focus-glow: rgba(99, 102, 241, 0.25);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-pill: 9999px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    
    --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Body Override for Login Page */
body.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #09090b 45%, #020617 100%);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ambient Background Light Orbs */
.ambient-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0) 70%);
}

.orb-2 {
    bottom: -15%;
    right: 5%;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(139, 92, 246, 0) 70%);
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 45%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
    animation-duration: 26s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Split-Screen Container Layout */
.login-viewport {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.login-split-grid {
    width: 100%;
    max-width: 1180px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 50px -10px var(--card-glow);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.4s ease;
}

/* =====================================================
   LEFT COLUMN: VISUAL SHOWCASE & BRAND STORY
   ===================================================== */
.login-showcase-pane {
    position: relative;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.login-showcase-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--login-accent), var(--login-primary), var(--login-secondary));
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-pill);
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.brand-badge i {
    color: var(--login-accent);
    font-size: 0.8rem;
}

.showcase-header .brand-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 70%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--login-primary), var(--login-secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.showcase-header .brand-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 440px;
}

/* Showcase Interactive Preview Cards */
.showcase-cards-container {
    margin: 2.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
}

.preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4),
                0 0 20px -5px rgba(99, 102, 241, 0.2);
}

.preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.preview-card.featured-mountain::after {
    background: linear-gradient(180deg, #38bdf8, #6366f1);
}

.preview-card.featured-status::after {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.preview-card.featured-security::after {
    background: linear-gradient(180deg, #a855f7, #ec4899);
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.card-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.icon-mountain { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.icon-check { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.icon-shield { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

.card-title-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.badge-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* Progress bar inside Mountain card */
.mountain-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.6rem 0 0.4rem 0;
}

.mountain-progress-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
    border-radius: 10px;
    position: relative;
    animation: progressGlow 2.5s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.25); }
}

.card-bottom-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.security-trust-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #94a3b8;
}

.security-trust-tag i {
    color: #10b981;
}

/* =====================================================
   RIGHT COLUMN: LOGIN FORM PANE
   ===================================================== */
.login-form-pane {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(18, 18, 22, 0.4);
}

.form-header-box {
    margin-bottom: 1.75rem;
}

.form-header-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.form-header-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* Segmented Pill Role Switcher */
.role-segmented-switcher {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 5px;
    margin-bottom: 1.75rem;
    user-select: none;
}

.role-slider-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--login-primary), var(--login-secondary));
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease;
    z-index: 1;
}

.role-tab-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
    border-radius: var(--radius-pill);
    outline: none;
    min-height: 44px; /* Touch target accessibility */
}

.role-tab-item i {
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.role-tab-item.active {
    color: #ffffff;
}

.role-tab-item.active i {
    transform: scale(1.15);
}

/* Teacher state accent */
.role-slider-bg.is-teacher {
    transform: translateX(100%);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* Flash Alert Box */
.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.4rem;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.alert-custom i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Real-time Dynamic Status Alert */
.dynamic-status-banner {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.3rem;
    font-size: 0.86rem;
    animation: alertSlideIn 0.35s ease;
}

.dynamic-status-banner.is-locked {
    display: flex;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.dynamic-status-banner.is-reset {
    display: flex;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.is-locked .status-pulse-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.is-reset .status-pulse-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Form Groups & Inputs */
.form-field-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.field-label i {
    font-size: 0.85rem;
    color: #818cf8;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-lead-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.5;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    min-height: 48px; /* Touch target */
}

.login-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 400;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3.5px var(--input-focus-glow);
}

.input-icon-wrapper:focus-within .input-lead-icon {
    color: #818cf8;
}

/* Password Toggle Button */
.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, transform 0.15s ease;
    min-width: 36px;
    min-height: 36px;
}

.btn-password-toggle:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.btn-password-toggle:focus {
    outline: none;
    color: var(--login-accent);
}

/* Student First-Time Auto Fill Helper Box */
.student-helper-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.student-helper-banner i {
    color: var(--login-accent);
    margin-right: 0.35rem;
}

.btn-autofill-hint {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-autofill-hint:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Form Helper Row (Help modal link) */
.form-helper-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.4rem;
}

.btn-link-help {
    background: none;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.btn-link-help:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Login Submit Button */
.btn-submit-login {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-secondary) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
    min-height: 50px;
    box-sizing: border-box;
}

.btn-submit-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.6);
    filter: brightness(1.08);
}

.btn-submit-login:active {
    transform: translateY(0);
}

.btn-submit-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit-login.is-loading .btn-icon {
    display: none;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.btn-submit-login.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   HELP MODAL (QUICK GUIDE & UNLOCK INSTRUCTIONS)
   ===================================================== */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.help-modal-card {
    width: 100%;
    max-width: 520px;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(99, 102, 241, 0.2);
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.help-modal-overlay.open .help-modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-header h3 i {
    color: #38bdf8;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.help-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.help-step-item {
    display: flex;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.step-num-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--login-primary), var(--login-secondary));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.92rem;
    color: #f1f5f9;
}

.step-content p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-modal-primary {
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-primary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Breakdown)
   ===================================================== */
/* Large Tablet & Small Laptop (<= 992px) */
@media (max-width: 992px) {
    .login-split-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
    }

    .login-showcase-pane {
        padding: 2.25rem 2rem 1.75rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .showcase-cards-container {
        display: none; /* Hide preview mockup cards on tablets/phones to keep login focused and compact */
    }

    .showcase-header .brand-title {
        font-size: 1.75rem;
    }

    .showcase-footer {
        display: none;
    }

    .login-form-pane {
        padding: 2.25rem 2rem;
    }
}

/* Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .login-viewport {
        padding: 0.75rem;
    }

    .login-split-grid {
        border-radius: var(--radius-md);
    }

    .login-showcase-pane {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }

    .showcase-header .brand-title {
        font-size: 1.45rem;
    }

    .brand-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .showcase-header .brand-sub {
        font-size: 0.85rem;
    }

    .login-form-pane {
        padding: 1.5rem 1.25rem 2rem 1.25rem;
    }

    .form-header-box h2 {
        font-size: 1.45rem;
    }

    .role-segmented-switcher {
        padding: 4px;
        margin-bottom: 1.35rem;
    }

    .role-tab-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .login-input {
        font-size: 0.92rem;
        padding-left: 2.5rem;
    }

    .student-helper-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-autofill-hint {
        align-self: flex-end;
    }

    .help-modal-card {
        padding: 1.25rem;
    }
}

/* Extra Small (<= 360px) */
@media (max-width: 360px) {
    .login-viewport {
        padding: 0.5rem;
    }
    .login-showcase-pane,
    .login-form-pane {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Prefers Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .mountain-progress-fill,
    .btn-submit-login,
    .preview-card {
        animation: none !important;
        transition: none !important;
    }
}
