.auth-page { min-height: 100vh; background: #eef4f8; }
.auth-shell { display: grid; grid-template-columns: minmax(420px, .92fr) minmax(480px, 1.08fr); min-height: 100vh; }
.auth-visual { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 34px 42px; overflow: hidden; background: linear-gradient(145deg, #061b35 0%, #0a3260 52%, #0a5f91 100%); color: var(--white); isolation: isolate; }
.auth-page--sub-admin .auth-visual { background: linear-gradient(145deg, #071f3b 0%, #0c416f 54%, #0e769d 100%); }
.auth-page--student .auth-visual { background: linear-gradient(145deg, #09213a 0%, #0a4e72 54%, #1796b8 100%); }
.auth-visual::before { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.auth-visual__glow { position: absolute; z-index: -1; border-radius: 999px; filter: blur(8px); }
.auth-visual__glow--one { top: 18%; inset-inline-end: -170px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(39,169,216,.34), transparent 68%); }
.auth-visual__glow--two { bottom: -160px; inset-inline-start: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(242,201,76,.17), transparent 68%); }
.auth-visual__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-visual__content { max-width: 590px; margin-block: auto; padding-block: 64px; }
.auth-visual__content h1 { max-width: 540px; margin: 18px 0 16px; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.045em; }
[dir="rtl"] .auth-visual__content h1 { letter-spacing: -.025em; }
.auth-visual__content > p { max-width: 550px; margin: 0; color: rgba(255,255,255,.71); font-size: 16px; line-height: 1.9; }
.auth-feature-list { display: grid; gap: 13px; margin-top: 32px; }
.auth-feature-list > div { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.88); font-size: 13px; }
.auth-feature-list span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.09); color: var(--yellow-500); }
.auth-visual__footer { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 11px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #52d69a; box-shadow: 0 0 0 4px rgba(82,214,154,.12); }
.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 54px; background: var(--white); }
.auth-panel__mobile-header { display: none; }
.auth-card { width: min(100%, 430px); }
.auth-card__heading { margin-bottom: 30px; }
.auth-card__heading h2 { margin: 18px 0 8px; color: var(--navy-950); font-size: 31px; letter-spacing: -.035em; }
.auth-card__heading p { margin: 0; color: var(--slate-600); font-size: 14px; line-height: 1.75; }
.portal-chip { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; border-radius: 999px; background: var(--cyan-100); color: var(--blue-700); font-size: 11px; font-weight: 850; }
.portal-chip--super-admin { background: #edf1ff; color: #4259ad; }
.portal-chip--sub-admin { background: #e8f8fb; color: #087b97; }
.portal-chip--student { background: var(--yellow-100); color: #85620d; }
.auth-card__note { margin: 24px 0 0; color: var(--slate-500); font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { display: block; min-height: 100vh; padding: 28px; }
    .auth-panel__mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 70px; }
    .auth-card { margin-inline: auto; }
}
@media (max-width: 520px) {
    .auth-panel { padding: 21px; }
    .auth-panel__mobile-header { margin-bottom: 50px; }
    .auth-card__heading h2 { font-size: 27px; }
}

.student-auth-actions { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.student-auth-actions__primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid #c8dce6; border-radius: 11px; color: var(--blue-700); font-size: 11px; font-weight: 800; text-decoration: none; }
.student-auth-actions__primary:hover { border-color: var(--cyan-500); background: #f3fbfe; }
.verification-resend { border: 1px solid var(--slate-200); border-radius: 11px; background: #fafcfd; }
.verification-resend summary { padding: 12px 13px; color: var(--slate-600); font-size: 10px; font-weight: 750; cursor: pointer; }
.verification-resend form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 0 11px 11px; }
.verification-resend input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--slate-200); border-radius: 9px; outline: none; font-size: 10px; }
.verification-resend button { padding: 0 11px; border: 0; border-radius: 9px; background: var(--navy-900); color: white; font-size: 9px; font-weight: 800; cursor: pointer; }
@media (max-width: 440px) { .verification-resend form { grid-template-columns: 1fr; } .verification-resend button { min-height: 38px; } }

/* Consistent authentication controls */
.auth-page .button,
.auth-page button,
.auth-page .language-switch {
    min-height: 44px;
}
.auth-page .button { padding-inline: 18px; font-size: 14px; }
.auth-page .verification-resend button { min-height: 44px; font-size: 12px; }
.auth-panel__mobile-header .plain-link:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--navy-950);
}

.auth-panel__mobile-header .brand__logo {
    height: 46px;
    width: auto;
}

/* Password recovery ------------------------------------------------------- */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-inline-link,
.auth-back-link {
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.auth-inline-link:hover,
.auth-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-back-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 2px;
}

@media (max-width: 440px) {
    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
