/* Education secure access wizard. Mobile first, single active surface, no decorative spill. */
.login-wizard-shell {
    min-height: 100svh;
    display: block;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: #08090b !important;
}
.login-wizard-shell::before { display: none !important; }
.login-wizard {
    width: min(100%, 590px);
    margin: 0 auto;
    padding: 10px 0 30px;
}
.login-wizard-header { padding: 8px 2px 24px; }
.login-wizard-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gold-bright);
    font-size: .69rem;
    font-weight: 840;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.login-wizard-brand::before {
    content: "TEE";
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232,197,120,.28);
    border-radius: 12px;
    background: #101114;
    color: #f0d58e;
    font-size: .67rem;
    letter-spacing: .05em;
}
.login-wizard h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.05rem, 9vw, 3.25rem);
    line-height: .99;
    letter-spacing: -.05em;
    text-wrap: balance;
}
.login-wizard-lede {
    max-width: 46ch;
    margin: 17px 0 0;
    color: #98999f;
    font-size: .98rem;
    line-height: 1.58;
}
.login-wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 18px;
}
.login-progress-step {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #65666d;
    font-size: .62rem;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color 300ms cubic-bezier(.16,1,.3,1);
}
.login-progress-step::before {
    content: "";
    height: 3px;
    border-radius: 999px;
    background: #24262b;
    transform: scaleX(.88);
    transform-origin: left center;
    transition: background-color 320ms cubic-bezier(.16,1,.3,1), transform 420ms cubic-bezier(.16,1,.3,1), opacity 320ms ease;
}
.login-progress-step.is-current { color: #f2d792; }
.login-progress-step.is-current::before { background: #d7b764; transform: scaleX(1); }
.login-progress-step.is-complete { color: #8e9a92; }
.login-progress-step.is-complete::before { background: #557764; transform: scaleX(1); }
.login-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,132,132,.24);
    border-radius: 13px;
    background: #171012;
    color: #ffc7c7;
    font-size: .86rem;
    line-height: 1.48;
}
.login-wizard-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: #0e0f11;
    box-shadow: none;
    contain: paint;
    transition: border-color 260ms ease;
}
.login-wizard.is-transitioning .login-wizard-stage { border-color: rgba(232,197,120,.16); }
.login-wizard-panel {
    width: 100%;
    padding: 22px;
    transform-origin: center center;
    backface-visibility: hidden;
}
.login-wizard-panel[hidden] { display: none !important; }
.login-step-kicker {
    display: block;
    margin-bottom: 9px;
    color: #e5c779;
    font-size: .67rem;
    font-weight: 840;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.login-step-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.28;
    letter-spacing: -.02em;
}
.login-step-copy {
    margin: 9px 0 0;
    color: #85868d;
    font-size: .88rem;
    line-height: 1.56;
}
.login-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.login-captcha-surface + .login-step-actions { margin-top: 28px; }
.login-step-actions .button {
    min-height: 48px;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 170ms cubic-bezier(.22,.61,.36,1), background-color 220ms ease, border-color 220ms ease, opacity 220ms ease;
}
.login-step-actions .button:active { transform: scale(.98); }
.login-step-actions .button-primary {
    flex: 1 1 220px;
    border: 1px solid #e2c577;
    background: #dfbf69;
    color: #101114;
}
.login-step-actions .button-primary:hover { background: #e8cc80; }
.login-step-actions .button-primary:disabled {
    border-color: rgba(226,197,119,.35);
    background: #8e793f;
    color: rgba(16,17,20,.72);
    opacity: .72;
}
.login-step-actions .button-secondary,
.login-step-back {
    border-color: #303238;
    background: #151619;
    color: #c5c6ca;
}
.telegram-deeplink-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #777981;
    font-size: .78rem;
}
.telegram-deeplink-status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d2ad59;
}
.telegram-verified-card {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    margin: 16px 0 4px;
    padding: 12px;
    border: 1px solid #284036;
    border-radius: 12px;
    background: #0e1713;
}
.telegram-verified-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #173324;
    color: #8bd6a8;
    font-weight: 900;
}
.telegram-verified-card strong,
.telegram-verified-card small { display: block; }
.telegram-verified-card small { margin-top: 2px; color: #7f8983; font-size: .73rem; }
.login-wizard-form { margin: 0; }
.login-wizard-field {
    display: grid;
    gap: 8px;
    margin-top: 19px;
}
.login-wizard-field label { font-size: .8rem; font-weight: 720; color: #d7d8dc; }
.login-wizard-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #303238;
    border-radius: 12px;
    outline: 0;
    background: #0a0b0d;
    color: #f4f4f5;
    box-shadow: none;
}
.login-wizard-field input:focus,
.login-wizard-field input:focus-visible {
    border-color: #b99b55;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(212,176,91,.16);
}
.login-wizard-field input::placeholder { color: #55575e; }

/* Frameless reCAPTCHA viewport. The native outer rim is cropped, not redrawn. */
.login-captcha-surface {
    --captcha-scale: 1;
    width: 300px;
    max-width: 100%;
    height: 74px;
    margin: 24px auto 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    isolation: isolate;
}
.login-captcha-surface .g-recaptcha,
.login-captcha-surface .g-recaptcha > div {
    width: 304px;
    height: 78px;
    transform-origin: top left;
}
.login-captcha-surface .g-recaptcha {
    transform: translate(-2px, -2px) scale(var(--captcha-scale));
}
.login-captcha-surface iframe {
    display: block;
    width: 304px !important;
    height: 78px !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.login-ready-list {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.login-ready-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a7a8ad;
    font-size: .83rem;
}
.login-ready-list li::before {
    content: "✓";
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #163021;
    color: #89d5a6;
    font-size: .72rem;
    font-weight: 900;
}
.login-wizard-footnote {
    margin: 22px 4px 0;
    color: #5f6067;
    font-size: .73rem;
    line-height: 1.58;
}
.login-wizard-noscript { margin-top: 12px; color: #ffb8b8; font-size: .78rem; }

@media (max-width: 560px) {
    .login-wizard-shell { padding-inline: 12px; }
    .login-wizard { padding-top: 6px; }
    .login-wizard-header { padding-bottom: 22px; }
    .login-wizard-stage { border-radius: 16px; }
    .login-wizard-panel { padding: 20px; }
    .login-step-actions { gap: 11px; }
    .login-step-actions .button-secondary { flex: 0 0 auto; min-width: 106px; }
}

@media (max-width: 380px) {
    .login-wizard-shell { padding-inline: 10px; }
    .login-wizard-panel { padding: 17px; }
    .login-progress-step { font-size: .56rem; }
    .login-step-actions { gap: 9px; }
    .login-step-actions .button { min-height: 46px; }
    .login-step-actions .button-secondary { min-width: 100px; }
    .login-captcha-surface {
        --captcha-scale: .88;
        width: 264px;
        height: 65px;
    }
}

@media (max-width: 330px) {
    .login-progress-step span { display: none; }
    .login-captcha-surface {
        --captcha-scale: .82;
        width: 246px;
        height: 61px;
    }
    .login-step-actions .button-secondary { min-width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-wizard * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
