/* Auth pages — distinctive visual layer (login, forgot password, etc.) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700&display=swap');

html.auth-layout,
body.auth-layout {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* —— Animated background —— */
.auth-page {
    position: relative;
    z-index: 1;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 42%, color-mix(in srgb, var(--primary) 70%, #0c1222) 100%);
}

.auth-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* —— Playful floating crystals —— */
.auth-bg-crystals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-crystal {
    position: absolute;
    display: block;
    opacity: 0.75;
    will-change: transform;
}

/* Faceted gem */
.auth-crystal-gem {
    width: var(--crystal-size, 48px);
    height: var(--crystal-size, 48px);
    clip-path: polygon(50% 0%, 92% 18%, 100% 55%, 72% 100%, 28% 100%, 0% 55%, 8% 18%);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.95) 0%,
        var(--crystal-a, rgba(147, 197, 253, 0.85)) 35%,
        var(--crystal-b, rgba(99, 102, 241, 0.7)) 100%
    );
    box-shadow:
        inset -4px -8px 16px rgba(255, 255, 255, 0.5),
        inset 4px 4px 12px rgba(0, 0, 0, 0.08),
        0 8px 24px var(--crystal-glow, rgba(99, 102, 241, 0.35));
    animation: crystal-drift var(--crystal-dur, 14s) ease-in-out infinite;
}

/* Rotated diamond */
.auth-crystal-diamond {
    --crystal-size: 36px;
    width: var(--crystal-size);
    height: var(--crystal-size);
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        var(--crystal-a, rgba(196, 181, 253, 0.8)) 50%,
        var(--crystal-b, rgba(167, 139, 250, 0.65))
    );
    transform: rotate(45deg);
    box-shadow:
        0 0 20px var(--crystal-glow, rgba(167, 139, 250, 0.4)),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
    animation: crystal-spin-drift var(--crystal-dur, 16s) ease-in-out infinite;
}

/* Sharp shard */
.auth-crystal-shard {
    width: 0;
    height: 0;
    border-left: calc(var(--crystal-size, 20px) * 0.45) solid transparent;
    border-right: calc(var(--crystal-size, 20px) * 0.45) solid transparent;
    border-bottom: var(--crystal-size, 44px) solid var(--crystal-a, rgba(110, 231, 183, 0.75));
    filter: drop-shadow(0 4px 12px var(--crystal-glow, rgba(52, 211, 153, 0.4)));
    animation: crystal-drift var(--crystal-dur, 12s) ease-in-out infinite;
}

.auth-crystal-shard::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
    width: 30%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Hex crystal */
.auth-crystal-hex {
    width: var(--crystal-size, 40px);
    height: calc(var(--crystal-size, 40px) * 0.866);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.85),
        var(--crystal-a, rgba(251, 207, 232, 0.8)),
        var(--crystal-b, rgba(244, 114, 182, 0.6))
    );
    box-shadow: 0 6px 20px var(--crystal-glow, rgba(244, 114, 182, 0.35));
    animation: crystal-drift var(--crystal-dur, 18s) ease-in-out infinite;
}

/* Sparkles */
.auth-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
    opacity: 0;
    animation: sparkle-twinkle var(--sparkle-dur, 3s) ease-in-out infinite;
}

.auth-crystal-1 {
    --crystal-size: 56px;
    --crystal-a: rgba(147, 197, 253, 0.9);
    --crystal-b: rgba(59, 130, 246, 0.75);
    --crystal-glow: rgba(96, 165, 250, 0.45);
    --crystal-dur: 15s;
    top: 8%;
    left: 6%;
    animation-delay: 0s;
}

.auth-crystal-2 {
    --crystal-size: 42px;
    --crystal-a: rgba(196, 181, 253, 0.9);
    --crystal-b: rgba(139, 92, 246, 0.7);
    --crystal-glow: rgba(167, 139, 250, 0.4);
    --crystal-dur: 13s;
    top: 18%;
    right: 10%;
    animation-delay: -2s;
}

.auth-crystal-3 {
    --crystal-size: 38px;
    --crystal-a: rgba(253, 186, 216, 0.9);
    --crystal-b: rgba(236, 72, 153, 0.65);
    --crystal-glow: rgba(244, 114, 182, 0.4);
    --crystal-dur: 17s;
    bottom: 22%;
    right: 8%;
    animation-delay: -5s;
}

.auth-crystal-4 {
    --crystal-size: 28px;
    --crystal-a: rgba(165, 243, 252, 0.95);
    --crystal-b: rgba(34, 211, 238, 0.7);
    --crystal-glow: rgba(34, 211, 238, 0.45);
    --crystal-dur: 14s;
    top: 42%;
    left: 4%;
    animation-delay: -3s;
}

.auth-crystal-5 {
    --crystal-size: 22px;
    --crystal-a: rgba(254, 240, 138, 0.95);
    --crystal-b: rgba(250, 204, 21, 0.75);
    --crystal-glow: rgba(250, 204, 21, 0.4);
    --crystal-dur: 11s;
    bottom: 35%;
    left: 12%;
    animation-delay: -7s;
}

.auth-crystal-6 {
    --crystal-size: 36px;
    --crystal-a: rgba(110, 231, 183, 0.85);
    --crystal-glow: rgba(52, 211, 153, 0.4);
    --crystal-dur: 12s;
    top: 55%;
    right: 5%;
    animation-delay: -1s;
}

.auth-crystal-7 {
    --crystal-size: 28px;
    --crystal-a: rgba(191, 219, 254, 0.9);
    --crystal-glow: rgba(59, 130, 246, 0.35);
    --crystal-dur: 16s;
    bottom: 12%;
    left: 22%;
    animation-delay: -4s;
}

.auth-crystal-8 {
    --crystal-size: 24px;
    --crystal-a: rgba(233, 213, 255, 0.9);
    --crystal-glow: rgba(192, 132, 252, 0.4);
    --crystal-dur: 10s;
    top: 28%;
    left: 18%;
    animation-delay: -6s;
}

.auth-crystal-9 {
    --crystal-size: 34px;
    --crystal-a: rgba(254, 202, 202, 0.9);
    --crystal-b: rgba(248, 113, 113, 0.65);
    --crystal-glow: rgba(248, 113, 113, 0.35);
    --crystal-dur: 19s;
    bottom: 8%;
    right: 18%;
    animation-delay: -8s;
}

.auth-crystal-10 {
    --crystal-size: 26px;
    --crystal-a: rgba(186, 230, 253, 0.95);
    --crystal-b: rgba(14, 165, 233, 0.7);
    --crystal-glow: rgba(56, 189, 248, 0.4);
    --crystal-dur: 13s;
    top: 72%;
    left: 8%;
    animation-delay: -9s;
}

.auth-sparkle-1 { top: 12%; left: 28%; --sparkle-dur: 2.8s; animation-delay: 0s; }
.auth-sparkle-2 { top: 25%; right: 22%; --sparkle-dur: 3.2s; animation-delay: 0.6s; }
.auth-sparkle-3 { bottom: 30%; right: 28%; --sparkle-dur: 2.5s; animation-delay: 1.2s; }
.auth-sparkle-4 { bottom: 18%; left: 35%; --sparkle-dur: 3.5s; animation-delay: 0.3s; }
.auth-sparkle-5 { top: 48%; right: 15%; --sparkle-dur: 2.2s; animation-delay: 1.8s; }
.auth-sparkle-6 { top: 65%; left: 42%; --sparkle-dur: 3s; animation-delay: 0.9s; }

@keyframes crystal-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -14px) rotate(8deg);
    }
    50% {
        transform: translate(-6px, 8px) rotate(-5deg);
    }
    75% {
        transform: translate(8px, 6px) rotate(4deg);
    }
}

@keyframes crystal-spin-drift {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    33% {
        transform: rotate(52deg) translate(12px, -10px);
    }
    66% {
        transform: rotate(38deg) translate(-8px, 12px);
    }
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }
    50% {
        opacity: 0.95;
        transform: scale(1) rotate(180deg);
    }
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: auth-float 18s ease-in-out infinite;
}

.auth-shape-1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    background: color-mix(in srgb, var(--primary-light) 60%, transparent);
    top: -12%;
    right: -8%;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
    background: rgba(255, 255, 255, 0.12);
    bottom: 10%;
    left: -10%;
    animation-delay: -6s;
}

.auth-shape-3 {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    background: color-mix(in srgb, var(--primary) 80%, #fff);
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -12s;
    opacity: 0.25;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.05); }
    66% { transform: translate(-8px, 10px) scale(0.98); }
}

.auth-shape-3 {
    animation-name: auth-float-center;
}

@keyframes auth-float-center {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, -20px) scale(1.08); }
}

/* —— Glass card —— */
.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 25px 50px -12px rgba(15, 23, 42, 0.35),
        0 0 80px -20px color-mix(in srgb, var(--primary) 40%, transparent);
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1.1rem, 3.5vw, 1.75rem);
    animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0.85;
}

/* —— Brand header —— */
.auth-brand {
    margin-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
}

.auth-logo-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto clamp(0.5rem, 1.5vw, 0.75rem);
}

.auth-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    opacity: 0.2;
    z-index: 0;
}

.auth-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
    z-index: 1;
    pointer-events: none;
}

.auth-logo {
    position: relative;
    z-index: 2;
    display: block;
    max-width: clamp(64px, 20vw, 88px);
    max-height: clamp(56px, 18vw, 76px);
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

/* Login: larger logo, tighter brand spacing — same overall card footprint */
.auth-card-login .auth-logo-wrap {
    margin-bottom: 0.85rem;
}

.auth-card-login .auth-logo-wrap::before {
    inset: -8px;
}

.auth-card-login .auth-logo {
    max-width: clamp(96px, 28vw, 128px);
    max-height: clamp(88px, 26vw, 118px);
    padding: 6px;
}

.auth-card-login .auth-logo-placeholder {
    width: clamp(96px, 28vw, 128px);
    height: clamp(96px, 28vw, 128px);
    font-size: clamp(1.85rem, 6vw, 2.5rem);
}

.auth-card-login .auth-brand {
    margin-bottom: 0.45rem;
}

.auth-card-login .auth-welcome-badge {
    display: inline-flex;
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
    padding: 0.22rem 0.6rem;
}

.auth-card-login .auth-brand h2 {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    margin-bottom: 0.1rem;
    line-height: 1.15;
}

.auth-card-login .auth-motto {
    font-size: clamp(0.7rem, 1.8vw, 0.78rem);
    line-height: 1.2;
    margin: 0;
}

.auth-card-login .subtitle {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.55rem;
    line-height: 1.3;
}

.auth-logo-placeholder {
    position: relative;
    z-index: 2;
    width: clamp(64px, 20vw, 88px);
    height: clamp(64px, 20vw, 88px);
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
}

.auth-brand h2 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.auth-motto {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.auth-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 100px;
}

.auth-welcome-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 30%, transparent);
}

.auth-card .subtitle {
    color: var(--muted);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    margin-bottom: clamp(0.85rem, 2.5vw, 1.1rem);
    line-height: 1.45;
}

/* —— Form inputs with icons —— */
.auth-form .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}

.auth-form .auth-input-wrap .form-control {
    padding-left: 2.65rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form .auth-input-wrap .form-control:focus {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
    outline: none;
}

.auth-form .auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary);
}

.password-field-wrap.auth-input-wrap .form-control {
    padding-right: 3.5rem;
}

.password-toggle {
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.password-toggle:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

/* —— Remember / forgot row —— */
.auth-form-row {
    margin-bottom: 0.85rem;
}

.auth-remember {
    font-size: 0.82rem;
}

.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* —— Submit button —— */
.auth-submit-btn {
    position: relative;
    overflow: hidden;
    min-height: 42px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow:
        0 4px 14px color-mix(in srgb, var(--primary) 45%, transparent),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.15s, box-shadow 0.2s;
}

.auth-submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 22px color-mix(in srgb, var(--primary) 50%, transparent),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    color: #fff;
    text-decoration: none;
}

.auth-submit-btn:hover::after {
    transform: translateX(100%);
}

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

/* —— Alerts —— */
.auth-card .alert {
    border-radius: 10px;
    font-size: 0.84rem;
}

.auth-card .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-card .alert-success,
.auth-card .alert-info {
    border-width: 1px;
}

/* —— Footer link —— */
.auth-back-link a {
    font-weight: 600;
    transition: color 0.15s;
}

/* —— Channel cards (forgot password) —— */
.channel-card {
    border-radius: 12px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.channel-card:hover:not(.is-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.channel-card.is-selected {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* —— Login-only accent strip —— */
.auth-card-login .auth-form {
    padding-top: 0.15rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card-wide .auth-form {
    max-width: none;
}

.auth-lead {
    color: var(--muted, #64748b);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.auth-register-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--muted, #64748b);
}

.auth-register-link a {
    font-weight: 600;
}

.auth-fieldset {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem 0.35rem;
    margin: 0 0 1rem;
}

.auth-fieldset legend {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 0.35rem;
}

.auth-fieldset-hint,
.optional {
    font-weight: 400;
    color: var(--muted, #64748b);
    font-size: 0.85em;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}

.auth-form-stack .form-group {
    margin-bottom: 0.85rem;
}

.field-error {
    display: block;
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.auth-success-panel {
    text-align: left;
}

.auth-success-list {
    margin: 1rem 0 1.25rem;
    padding-left: 1.2rem;
    line-height: 1.7;
}

/* —— Student admission form —— */
.auth-card-admission {
    max-width: 720px;
    width: min(720px, 100%);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem);
}

.auth-card-admission .auth-brand {
    margin-bottom: 0.65rem;
}

.auth-card-admission .auth-logo {
    max-width: clamp(72px, 18vw, 88px);
    max-height: clamp(64px, 16vw, 80px);
}

.auth-card-admission .auth-brand h2 {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.auth-card-admission .auth-form {
    max-width: none;
}

.admission-form-wrap {
    text-align: left;
}

.admission-header {
    margin-bottom: 1.35rem;
}

.admission-title {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 0.45rem;
    letter-spacing: -0.02em;
}

.admission-subtitle {
    color: var(--muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.admission-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admission-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #64748b);
    background: color-mix(in srgb, var(--primary) 6%, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 999px;
    padding: 0.28rem 0.65rem 0.28rem 0.35rem;
}

.admission-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.admission-alert {
    margin-bottom: 1rem;
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admission-section {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admission-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 7%, #fff),
        color-mix(in srgb, var(--primary) 3%, #f8fafc)
    );
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admission-section-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent);
}

.admission-section-head h4 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text, #0f172a);
}

.admission-section-head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted, #64748b);
    line-height: 1.45;
}

.admission-section-body {
    padding: 1.1rem 1.1rem 0.35rem;
}

.admission-section-body .form-group {
    margin-bottom: 0.95rem;
}

.admission-section-body label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text, #334155);
    margin-bottom: 0.35rem;
}

.admission-section-body .form-control {
    width: 100%;
    font-size: 0.92rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.55rem 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admission-section-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
    outline: none;
}

.admission-section-body select.form-control {
    appearance: auto;
}

.admission-grid {
    display: grid;
    gap: 0 0.85rem;
}

.admission-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.admission-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
    .admission-grid-2,
    .admission-grid-3 {
        grid-template-columns: 1fr;
    }
}

.req {
    color: #dc2626;
    font-weight: 700;
}

.admission-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 1rem;
    color: var(--muted, #64748b);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admission-divider::before,
.admission-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.admission-info-box {
    background: color-mix(in srgb, var(--primary) 8%, #eff6ff);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--primary) 70%, #1e293b);
    margin-bottom: 1rem;
}

.admission-file-wrap {
    position: relative;
}

.admission-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.admission-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.1rem 1rem;
    border: 2px dashed rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.admission-file-label:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, #fff);
}

.admission-file-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.admission-file-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #334155);
}

.admission-file-hint {
    font-size: 0.78rem;
    color: var(--muted, #64748b);
}

.admission-file-name {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.admission-section-body .password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.admission-section-body .password-field-wrap .form-control {
    padding-right: 3.25rem;
}

.admission-section-body .password-toggle {
    position: absolute;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.admission-submit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 0.25rem;
}

.admission-footnote {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted, #64748b);
}

.admission-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.admission-submit-actions .auth-submit-btn {
    min-width: 10rem;
}

@media (max-width: 480px) {
    .admission-submit-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admission-submit-actions {
        margin-left: 0;
        flex-direction: column-reverse;
    }

    .admission-submit-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-crystal-3,
    .auth-crystal-8,
    .auth-crystal-10,
    .auth-sparkle-4,
    .auth-sparkle-6 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-shape,
    .auth-crystal,
    .auth-sparkle {
        animation: none;
    }
    .auth-crystal-diamond {
        transform: rotate(45deg);
    }
    .auth-submit-btn::after {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   Shared login components (all styles)
   ══════════════════════════════════════════════════════════════ */

.auth-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-brand-header-logo {
    flex-shrink: 0;
    width: clamp(56px, 14vw, 72px);
    height: clamp(56px, 14vw, 72px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent),
        0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent);
    overflow: hidden;
}

.auth-brand-header-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.auth-brand-header-logo--placeholder {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-brand-header-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 0.2rem;
}

.auth-brand-header-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text, #0f172a);
    margin: 0;
}

.auth-brand-header-motto {
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    margin: 0.15rem 0 0;
    font-style: italic;
}

.auth-portal-pills {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.auth-portal-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted, #64748b);
    background: color-mix(in srgb, var(--primary) 6%, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

.auth-portal-pills svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   Split-screen login
   ══════════════════════════════════════════════════════════════ */

.auth-body-login-split .auth-bg-crystals,
.auth-body-login-split .auth-bg-shapes,
.auth-body-login-minimal .auth-bg-crystals,
.auth-body-login-minimal .auth-bg-shapes,
.auth-body-login-immersive .auth-bg-crystals,
.auth-body-login-immersive .auth-bg-shapes,
.auth-body-login-corporate .auth-bg-crystals,
.auth-body-login-corporate .auth-bg-shapes,
.auth-body-login-slate .auth-bg-crystals,
.auth-body-login-slate .auth-bg-shapes,
.auth-body-login-campus .auth-bg-crystals,
.auth-body-login-campus .auth-bg-shapes,
.auth-body-login-geometric .auth-bg-crystals,
.auth-body-login-geometric .auth-bg-shapes,
.auth-body-login-focus .auth-bg-crystals,
.auth-body-login-focus .auth-bg-shapes {
    display: none;
}

.auth-body-login-split .auth-page {
    background:
        radial-gradient(ellipse 120% 80% at 0% 50%, color-mix(in srgb, var(--primary) 35%, #0f172a) 0%, transparent 55%),
        linear-gradient(160deg, #0c1222 0%, color-mix(in srgb, var(--primary-dark) 90%, #020617) 45%, #0f172a 100%);
    padding: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.auth-body-login-split .auth-page::before,
.auth-body-login-split .auth-page::after {
    display: none;
}

.auth-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    animation: auth-login-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-login-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Brand panel (left) —— */
.auth-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    background:
        linear-gradient(165deg,
            color-mix(in srgb, var(--primary) 92%, #fff) 0%,
            var(--primary) 38%,
            var(--primary-dark) 100%);
}

.auth-login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.auth-login-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
        linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
}

.auth-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.auth-login-logo-ring {
    width: clamp(72px, 12vw, 96px);
    height: clamp(72px, 12vw, 96px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.2);
}

.auth-login-logo {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.auth-login-logo-ring--placeholder {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
}

.auth-login-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin: 0 0 0.5rem;
}

.auth-login-school-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.auth-login-motto {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 0.75rem;
    font-style: italic;
}

.auth-login-tagline {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.88;
    margin: 0 0 2rem;
    max-width: 22rem;
}

.auth-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-login-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.95;
}

.auth-login-features strong {
    font-weight: 600;
}

.auth-login-feature-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-feature-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.auth-login-brand-foot {
    margin: 2.5rem 0 0;
    font-size: 0.78rem;
    opacity: 0.65;
}

/* —— Form panel (right) —— */
.auth-login-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: #f8fafc;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.auth-login-panel-inner {
    width: min(400px, 100%);
    margin: auto 0;
    padding: 0.25rem 0;
}

.auth-login-form-header {
    margin-bottom: 1.5rem;
}

.auth-login-form-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.auth-login-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text, #0f172a);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.auth-login-form-lead {
    font-size: 0.9rem;
    color: var(--muted, #64748b);
    line-height: 1.5;
    margin: 0;
}

.auth-login-panel .alert {
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
}

.auth-form-login {
    max-width: none;
    margin: 0;
}

.auth-form-login .form-group {
    margin-bottom: 1rem;
}

.auth-form-login .auth-input-wrap .form-control {
    min-height: 48px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.auth-form-login .auth-form-row {
    margin-bottom: 1.1rem;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-icon {
    width: 18px;
    height: 18px;
}

.password-toggle-icon--hide {
    display: none;
}

.password-toggle.is-visible .password-toggle-icon--show {
    display: none;
}

.password-toggle.is-visible .password-toggle-icon--hide {
    display: block;
}

.auth-submit-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 0.25rem;
}

.auth-submit-btn-login svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.auth-submit-btn-login:hover svg {
    transform: translateX(3px);
}

.auth-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--muted, #94a3b8);
    font-size: 0.78rem;
    font-weight: 500;
}

.auth-login-divider::before,
.auth-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.auth-login-admission-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.auth-login-admission-card:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.auth-login-admission-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-admission-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-login-admission-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.auth-login-admission-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text, #0f172a);
}

.auth-login-admission-text small {
    font-size: 0.8rem;
    color: var(--muted, #64748b);
}

.auth-login-admission-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--muted, #94a3b8);
    transition: transform 0.2s, color 0.2s;
}

.auth-login-admission-card:hover .auth-login-admission-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.auth-login-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    color: var(--muted, #94a3b8);
}

.auth-login-trust svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* —— Responsive: stack on mobile —— */
@media (max-width: 920px) {
    .auth-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-login-brand {
        padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2rem);
        min-height: auto;
    }

    .auth-login-brand-inner {
        max-width: none;
    }

    .auth-login-brand-foot {
        display: none;
    }

    .auth-login-tagline {
        margin-bottom: 0.75rem;
    }

    .auth-login-panel {
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .auth-body-login-split .auth-page {
        padding: 0;
    }

    .auth-login-shell {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .auth-login-tagline,
    .auth-login-features,
    .auth-login-brand-foot {
        display: none;
    }

    .auth-login-brand {
        padding: 1rem;
        flex-shrink: 0;
    }

    .auth-login-school-name {
        font-size: 1.25rem;
    }

    .auth-login-logo-ring {
        width: 56px;
        height: 56px;
        margin-bottom: 0.75rem;
    }

    .auth-login-panel {
        padding: 1rem;
    }
}

@media (min-width: 921px) {
    .auth-login-panel {
        border-left: 1px solid rgba(15, 23, 42, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-shell {
        animation: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   Classic glass card login
   ══════════════════════════════════════════════════════════════ */

.auth-body-login-classic .auth-crystal,
.auth-body-login-classic .auth-sparkle {
    opacity: 0.45;
}

.auth-page-login-classic {
    background:
        radial-gradient(ellipse 70% 50% at 50% -20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 65%, #0c1222) 100%);
}

.auth-card-classic {
    width: min(440px, 100%);
    padding: clamp(1.5rem, 4vw, 2rem) clamp(1.35rem, 3.5vw, 1.85rem);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 30px 60px -15px rgba(15, 23, 42, 0.4),
        0 0 100px -30px color-mix(in srgb, var(--primary) 50%, transparent);
}

.auth-card-classic::before {
    height: 4px;
    left: 2rem;
    right: 2rem;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
}

.auth-card-classic .auth-brand {
    display: none;
}

.auth-classic-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-classic-intro .auth-welcome-badge {
    margin-bottom: 0.65rem;
}

.auth-classic-lead {
    font-size: 0.88rem;
    color: var(--muted, #64748b);
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-classic .auth-form-login {
    max-width: none;
}

.auth-card-classic .auth-login-admission-card {
    background: color-mix(in srgb, var(--primary) 4%, #f8fafc);
}

@media (max-width: 400px) {
    .auth-brand-header {
        flex-direction: column;
        text-align: center;
    }

    .auth-portal-pills {
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   Minimal login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-minimal {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--primary) 8%, #f8fafc) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
}

.auth-page-login-minimal::before,
.auth-page-login-minimal::after {
    display: none;
}

.auth-minimal-shell {
    width: min(440px, 100%);
    margin: 0 auto;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-minimal-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.auth-minimal-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
}

.auth-minimal-card-body {
    padding: clamp(1.35rem, 4vw, 1.85rem);
}

.auth-minimal-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-minimal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--text, #0f172a);
}

.auth-minimal-header p {
    font-size: 0.88rem;
    color: var(--muted, #64748b);
    margin: 0;
    line-height: 1.45;
}

.auth-minimal-card .auth-brand-header {
    margin-bottom: 1rem;
}

.auth-minimal-card .auth-form-login {
    max-width: none;
}

.auth-minimal-card .auth-login-admission-card {
    background: #f8fafc;
}

@media (max-width: 400px) {
    .auth-minimal-card-body .auth-brand-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   Immersive login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-immersive {
    padding: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--primary-dark);
}

.auth-page-login-immersive::before,
.auth-page-login-immersive::after {
    display: none;
}

.auth-immersive-shell {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.auth-immersive-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        var(--primary-dark) 0%,
        color-mix(in srgb, var(--primary) 85%, #000) 40%,
        var(--primary) 70%,
        color-mix(in srgb, var(--primary-light) 60%, var(--primary-dark)) 100%
    );
    overflow: hidden;
}

.auth-immersive-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: auth-orb-float 20s ease-in-out infinite;
}

.auth-immersive-orb-1 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    background: color-mix(in srgb, var(--primary-light) 70%, transparent);
    top: -10%;
    right: -5%;
}

.auth-immersive-orb-2 {
    width: min(300px, 50vw);
    height: min(300px, 50vw);
    background: rgba(255, 255, 255, 0.15);
    bottom: 10%;
    left: -8%;
    animation-delay: -7s;
}

.auth-immersive-orb-3 {
    width: min(200px, 35vw);
    height: min(200px, 35vw);
    background: color-mix(in srgb, var(--primary) 80%, #fff);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.25;
}

@keyframes auth-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.97); }
}

.auth-immersive-orb-3 {
    animation-name: auth-orb-float-center;
}

@keyframes auth-orb-float-center {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 25px)) scale(1.08); }
}

.auth-immersive-backdrop-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    user-select: none;
}

.auth-immersive-watermark {
    width: min(200px, 35vw);
    height: auto;
    opacity: 0.18;
    margin-bottom: 1.25rem;
    filter: brightness(2) grayscale(0.2);
}

.auth-immersive-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
    max-width: 92%;
}

.auth-immersive-motto {
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    margin: 0.85rem 0 0;
    font-style: italic;
    opacity: 0.9;
}

.auth-immersive-card {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    animation: auth-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-immersive-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 50%, rgba(255, 255, 255, 0.15));
    z-index: 0;
    pointer-events: none;
}

.auth-immersive-card-inner {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.auth-immersive-card-header {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-immersive-card-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 25%, transparent);
    overflow: hidden;
}

.auth-immersive-card-logo img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.auth-immersive-card-logo--placeholder {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-immersive-card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.auth-immersive-card .auth-form-login {
    max-width: none;
}

.auth-immersive-card .auth-login-admission-card {
    background: color-mix(in srgb, var(--primary) 5%, #f8fafc);
}

@media (max-width: 520px) {
    .auth-immersive-backdrop-inner {
        opacity: 0.55;
    }

    .auth-immersive-headline {
        font-size: 1.85rem;
    }

    .auth-immersive-orb {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-immersive-orb {
        animation: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   Corporate executive login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-corporate {
    padding: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.auth-page-login-corporate::before,
.auth-page-login-corporate::after {
    display: none;
}

.auth-corporate-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-corporate-topbar {
    flex-shrink: 0;
    background: var(--sidebar-bg, #0f172a);
    color: #fff;
    border-bottom: 3px solid var(--primary);
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.auth-corporate-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}

.auth-corporate-topbar-logo {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.auth-corporate-topbar-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.auth-corporate-topbar-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.auth-corporate-topbar-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-corporate-topbar-text span {
    font-size: 0.78rem;
    opacity: 0.75;
    font-style: italic;
}

.auth-corporate-main {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(0.75rem, 2vw, 2rem) clamp(1rem, 4vw, 2.5rem);
}

.auth-corporate-grid {
    width: min(1100px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: center;
}

.auth-corporate-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text, #0f172a);
    margin: 0.5rem 0 0.75rem;
}

.auth-corporate-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted, #64748b);
    margin: 0 0 1.75rem;
    max-width: 28rem;
}

.auth-corporate-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.auth-corporate-stats li {
    flex: 1 1 100px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.auth-corporate-stats strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-corporate-stats span {
    font-size: 0.75rem;
    color: var(--muted, #64748b);
}

.auth-corporate-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: clamp(1.35rem, 3.5vw, 1.85rem);
}

.auth-corporate-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-corporate-card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.auth-corporate-card-header p {
    font-size: 0.85rem;
    color: var(--muted, #64748b);
    margin: 0;
}

.auth-corporate-card .auth-form-login {
    max-width: none;
}

.auth-corporate-foot {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted, #94a3b8);
    padding: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

@media (max-width: 920px) {
    .auth-corporate-grid {
        grid-template-columns: 1fr;
    }

    .auth-corporate-info {
        display: none;
    }

    .auth-corporate-main {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .auth-corporate-topbar-inner {
        min-height: 56px;
    }

    .auth-corporate-foot {
        flex-shrink: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   Slate dark pro login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-slate {
    padding: clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    min-height: 100dvh;
    background: #0b1120;
    justify-content: center;
}

.auth-page-login-slate::before,
.auth-page-login-slate::after {
    display: none;
}

.auth-slate-shell {
    position: relative;
    width: min(420px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-slate-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.auth-slate-card {
    position: relative;
    z-index: 1;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.auth-slate-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-slate-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-slate-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.auth-slate-logo--placeholder {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.auth-slate-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin: 0 0 0.35rem;
}

.auth-slate-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.auth-slate-motto {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

.auth-slate-card .auth-form-login .form-group label {
    color: #cbd5e1;
}

.auth-slate-card .auth-input-wrap .form-control {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.auth-slate-card .auth-input-wrap .form-control:focus {
    background: #1e293b;
    border-color: var(--primary-light);
}

.auth-slate-card .auth-input-wrap .form-control::placeholder {
    color: #64748b;
}

.auth-slate-card .auth-remember {
    color: #94a3b8;
}

.auth-slate-card .auth-login-divider {
    color: #64748b;
}

.auth-slate-card .auth-login-divider::before,
.auth-slate-card .auth-login-divider::after {
    background: rgba(255, 255, 255, 0.08);
}

.auth-slate-card .auth-login-admission-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-slate-card .auth-login-admission-text strong {
    color: #f1f5f9;
}

.auth-slate-card .auth-login-admission-text small {
    color: #94a3b8;
}

.auth-slate-card .auth-login-trust {
    color: #64748b;
}

/* ══════════════════════════════════════════════════════════════
   Campus welcome login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-campus {
    padding: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary) 6%, #fff8f0);
}

.auth-page-login-campus::before,
.auth-page-login-campus::after {
    display: none;
}

.auth-campus-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-campus-welcome {
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--primary) 88%, #fff) 0%,
        var(--primary) 55%,
        var(--primary-dark) 100%
    );
    color: #fff;
    display: flex;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
}

.auth-campus-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.auth-campus-welcome-inner {
    position: relative;
    z-index: 1;
    max-width: 24rem;
}

.auth-campus-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.auth-campus-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.auth-campus-logo--placeholder {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.auth-campus-welcome h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.auth-campus-motto {
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0 0 0.75rem;
}

.auth-campus-tagline {
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.88;
    margin: 0 0 1.5rem;
}

.auth-campus-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-campus-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    opacity: 0.95;
}

.auth-campus-highlight-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-campus-highlight-icon svg {
    width: 1rem;
    height: 1rem;
}

.auth-campus-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
}

.auth-campus-panel-inner {
    width: min(400px, 100%);
}

.auth-campus-form-header {
    margin-bottom: 1.35rem;
}

.auth-campus-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 0.35rem;
}

.auth-campus-form-header p {
    font-size: 0.9rem;
    color: var(--muted, #64748b);
    margin: 0;
}

.auth-campus-panel .auth-form-login {
    max-width: none;
}

@media (max-width: 920px) {
    .auth-campus-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .auth-campus-welcome {
        padding: 1.15rem 1rem;
    }

    .auth-campus-welcome-inner {
        max-width: none;
        text-align: center;
    }

    .auth-campus-logo {
        width: 64px;
        height: 64px;
        margin: 0 auto 0.75rem;
    }

    .auth-campus-welcome h1 {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .auth-campus-motto {
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    .auth-campus-tagline,
    .auth-campus-highlights {
        display: none;
    }

    .auth-campus-panel {
        padding: 1.15rem 1rem 1.25rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   Geometric modern login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-geometric {
    padding: clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    min-height: 100dvh;
    background: #f8fafc;
    justify-content: center;
}

.auth-page-login-geometric::before,
.auth-page-login-geometric::after {
    display: none;
}

.auth-geo-shell {
    position: relative;
    width: min(460px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-geo-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-geo-shape {
    position: absolute;
    border-radius: 24px;
}

.auth-geo-shape-1 {
    width: 50%;
    height: 65%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: rotate(-12deg);
    opacity: 0.9;
}

.auth-geo-shape-2 {
    width: 38%;
    height: 48%;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: rotate(18deg);
    opacity: 0.75;
}

.auth-geo-shape-3 {
    width: 25%;
    height: 30%;
    top: 40%;
    right: 15%;
    background: color-mix(in srgb, var(--primary-light) 80%, #fff);
    transform: rotate(-25deg);
    opacity: 0.5;
    border-radius: 50%;
}

.auth-geo-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-geo-header {
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-geo-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.auth-geo-header p {
    font-size: 0.88rem;
    color: var(--muted, #64748b);
    margin: 0;
}

.auth-geo-card .auth-brand-header {
    margin-bottom: 1rem;
}

.auth-geo-card .auth-form-login {
    max-width: none;
}

@media (max-width: 400px) {
    .auth-geo-card .auth-brand-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   Focus center login
   ══════════════════════════════════════════════════════════════ */

.auth-page-login-focus {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--primary) 6%, #fff) 0%, transparent 70%),
        #fafbfc;
    justify-content: center;
}

.auth-page-login-focus::before,
.auth-page-login-focus::after {
    display: none;
}

.auth-focus-shell {
    width: min(380px, 100%);
    margin: 0 auto;
    animation: auth-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-focus-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.auth-focus-logo-stack {
    text-align: center;
}

.auth-focus-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 15%, transparent);
}

.auth-focus-logo--placeholder {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-focus-logo-stack h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text, #0f172a);
}

.auth-focus-motto {
    font-size: 0.82rem;
    color: var(--muted, #64748b);
    margin: 0.25rem 0 0;
    font-style: italic;
}

.auth-focus-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(1.35rem, 4vw, 1.75rem);
}

.auth-focus-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.15rem;
    color: var(--text, #0f172a);
}

.auth-focus-card .auth-form-login {
    max-width: none;
}

.auth-focus-footer {
    width: 100%;
    text-align: center;
}

.auth-focus-admission {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.15s;
}

.auth-focus-admission:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-focus-footer .auth-login-trust {
    margin: 0;
}

@media (max-height: 700px) {
    .auth-portal-pills,
    .auth-login-trust {
        display: none;
    }

    .auth-classic-intro .auth-classic-lead {
        display: none;
    }

    .auth-brand-header {
        margin-bottom: 0.65rem;
    }

    .auth-login-form-header,
    .auth-campus-form-header,
    .auth-corporate-card-header,
    .auth-immersive-card-header {
        margin-bottom: 0.75rem;
    }

    .auth-form-login .form-group {
        margin-bottom: 0.65rem;
    }

    .auth-login-divider {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .auth-login-admission-card {
        display: flex;
    }
}

/* Admission CTA — always visible on phones/tablets */
@media (max-width: 920px) {
    .auth-login-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-login-extras-section {
        display: block;
        flex-shrink: 0;
        margin-top: 1.25rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .auth-login-divider,
    .auth-login-admission-card {
        display: flex !important;
    }

    .auth-login-admission-card {
        width: 100%;
        min-height: 3.25rem;
    }
}

@media (min-width: 921px) {
    .auth-login-divider {
        display: flex;
    }

    .auth-login-admission-card {
        display: flex;
    }

    .auth-login-trust {
        display: flex;
    }
}

/* ══════════════════════════════════════════════════════════════
   Viewport lock — no body scrollbar (all login styles)
   ══════════════════════════════════════════════════════════════ */

html.auth-layout {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overflow-x: clip;
    max-width: 100%;
}

body.auth-layout[class*="auth-body-login"] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body.auth-layout[class*="auth-body-login"] .auth-page {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
}

/* Mobile/tablet resilience:
   avoid fixed-viewport lock so login can reflow with browser UI and keyboards. */
@media (max-width: 1024px) {
    html.auth-layout,
    body.auth-layout[class*="auth-body-login"] {
        position: static;
        inset: auto;
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow-y: auto;
    }

    body.auth-layout[class*="auth-body-login"] .auth-page,
    body.auth-layout[class*="auth-body-login"] .auth-login-shell,
    body.auth-layout[class*="auth-body-login"] .auth-corporate-shell,
    body.auth-layout[class*="auth-body-login"] .auth-campus-shell,
    body.auth-layout[class*="auth-body-login"] .auth-immersive-shell,
    body.auth-layout[class*="auth-body-login"] .auth-minimal-shell,
    body.auth-layout[class*="auth-body-login"] .auth-slate-shell,
    body.auth-layout[class*="auth-body-login"] .auth-geo-shell,
    body.auth-layout[class*="auth-body-login"] .auth-focus-shell {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow-y: auto;
    }
}

body.auth-layout[class*="auth-body-login"] .auth-login-shell,
body.auth-layout[class*="auth-body-login"] .auth-corporate-shell,
body.auth-layout[class*="auth-body-login"] .auth-campus-shell,
body.auth-layout[class*="auth-body-login"] .auth-immersive-shell,
body.auth-layout[class*="auth-body-login"] .auth-minimal-shell,
body.auth-layout[class*="auth-body-login"] .auth-slate-shell,
body.auth-layout[class*="auth-body-login"] .auth-geo-shell,
body.auth-layout[class*="auth-body-login"] .auth-focus-shell {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

body.auth-layout[class*="auth-body-login"] .auth-page-login-classic,
body.auth-layout[class*="auth-body-login"] .auth-page-login-minimal,
body.auth-layout[class*="auth-body-login"] .auth-page-login-slate,
body.auth-layout[class*="auth-body-login"] .auth-page-login-geometric,
body.auth-layout[class*="auth-body-login"] .auth-page-login-focus {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: center;
    align-items: center;
    padding: max(0.5rem, env(safe-area-inset-top))
        max(0.5rem, env(safe-area-inset-right))
        max(0.5rem, env(safe-area-inset-bottom))
        max(0.5rem, env(safe-area-inset-left)) !important;
}

/* Inner scroll areas — no visible scrollbar track on the window edge */
.auth-login-brand,
.auth-login-panel,
.auth-corporate-main,
.auth-campus-welcome,
.auth-campus-panel,
.auth-immersive-shell,
.auth-page-login-classic,
.auth-page-login-minimal,
.auth-page-login-slate,
.auth-page-login-geometric,
.auth-page-login-focus,
.auth-minimal-shell,
.auth-slate-shell,
.auth-geo-shell,
.auth-focus-shell {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auth-login-brand::-webkit-scrollbar,
.auth-login-panel::-webkit-scrollbar,
.auth-corporate-main::-webkit-scrollbar,
.auth-campus-welcome::-webkit-scrollbar,
.auth-campus-panel::-webkit-scrollbar,
.auth-immersive-shell::-webkit-scrollbar,
.auth-page-login-classic::-webkit-scrollbar,
.auth-page-login-minimal::-webkit-scrollbar,
.auth-page-login-slate::-webkit-scrollbar,
.auth-page-login-geometric::-webkit-scrollbar,
.auth-page-login-focus::-webkit-scrollbar,
.auth-minimal-shell::-webkit-scrollbar,
.auth-slate-shell::-webkit-scrollbar,
.auth-geo-shell::-webkit-scrollbar,
.auth-focus-shell::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.auth-layout {
    overflow-x: clip;
    max-width: 100%;
    overscroll-behavior-x: none;
}

/* Flex spacers add phantom height on card-based layouts */
body[class*="auth-body-login"] .auth-page::before,
body[class*="auth-body-login"] .auth-page::after,
[class*="auth-page-login"]::before,
[class*="auth-page-login"]::after {
    display: none !important;
    flex: 0 0 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

.auth-bg-shapes,
.auth-bg-crystals {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.auth-page,
[class*="auth-page-login"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.auth-login-shell,
.auth-corporate-shell,
.auth-campus-shell,
.auth-immersive-shell,
.auth-geo-shell,
.auth-minimal-shell,
.auth-slate-shell,
.auth-focus-shell,
.auth-login-panel-inner,
.auth-corporate-card,
.auth-campus-panel-inner,
.auth-minimal-card,
.auth-geo-card,
.auth-focus-card,
.auth-focus-inner,
.auth-card,
.auth-card-login {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-login-brand,
.auth-login-panel,
.auth-corporate-main,
.auth-corporate-topbar-inner,
.auth-campus-welcome,
.auth-campus-panel,
.auth-immersive-card-inner,
.auth-minimal-card-body {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-login-school-name,
.auth-login-form-header h2,
.auth-corporate-info h1,
.auth-corporate-topbar-text strong,
.auth-campus-welcome h1,
.auth-campus-form-header h2,
.auth-immersive-headline,
.auth-immersive-card-header h2,
.auth-brand-header-name,
.auth-geo-header h2,
.auth-minimal-header h2,
.auth-focus-logo-stack h1,
.auth-slate-header h1,
.auth-classic-lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.auth-form-login,
.auth-form-login .form-group,
.auth-input-wrap,
.auth-input-wrap .form-control,
.auth-login-admission-card,
.auth-login-admission-text,
.auth-corporate-topbar-text,
.auth-portal-pills {
    max-width: 100%;
    min-width: 0;
}

.auth-form-login .auth-input-wrap .form-control {
    width: 100%;
    box-sizing: border-box;
}

.auth-login-admission-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-corporate-topbar-inner {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.auth-corporate-stats {
    width: 100%;
}

.auth-corporate-stats li {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
}

.auth-portal-pills li {
    max-width: 100%;
}

.auth-immersive-orb-1 {
    right: -15%;
    top: -15%;
}

.auth-immersive-orb-2 {
    left: -15%;
}

@media (max-width: 480px) {
    .auth-page-login-corporate,
    .auth-page-login-campus,
    .auth-page-login-immersive,
    .auth-body-login-split .auth-page {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }

    .auth-corporate-topbar,
    .auth-corporate-main,
    .auth-login-brand,
    .auth-login-panel,
    .auth-campus-welcome,
    .auth-campus-panel {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .auth-corporate-stats li {
        flex: 1 1 100%;
    }

    .auth-portal-pills {
        gap: 0.35rem;
    }

    .auth-portal-pills li {
        font-size: 0.68rem;
        padding: 0.25rem 0.5rem;
    }

    .auth-login-features li {
        font-size: 0.78rem;
    }

    .auth-immersive-headline {
        font-size: 1.65rem;
    }
}

@media (max-width: 360px) {
    .auth-form-login .auth-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .auth-login-admission-card {
        padding: 0.75rem;
        gap: 0.65rem;
    }
}
