:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #192b3a;
    background: #f4f7fa;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr);
    background: #fff;
}

.login-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 42px clamp(35px, 5vw, 76px) 34px;
    background:
        radial-gradient(ellipse at 69% 49%, rgb(22 100 113 / 28%), transparent 35%),
        radial-gradient(ellipse at 12% 90%, rgb(6 70 88 / 35%), transparent 34%),
        linear-gradient(145deg, #102d45 0%, #123953 54%, #10485a 100%);
    color: #fff;
}

.login-showcase::before,
.login-showcase::after {
    position: absolute;
    width: 470px;
    height: 470px;
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-showcase::before { top: 17%; right: -330px; }
.login-showcase::after { bottom: -335px; left: -250px; width: 570px; height: 570px; }

.login-brand { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.login-brand-mark, .login-mobile-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 13px; background: rgb(255 255 255 / 10%); box-shadow: 0 8px 22px rgb(0 0 0 / 12%); color: #fff; font-size: 20px; font-weight: 800; }
.login-brand-copy { display: grid; gap: 3px; }
.login-brand-copy strong { font-size: 16px; letter-spacing: -.3px; }
.login-brand-copy small { color: rgb(255 255 255 / 64%); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }

.showcase-content { position: relative; z-index: 1; width: min(100%, 570px); margin: auto auto 0; padding: 60px 0 0; }
.showcase-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #9bd5d1; font-size: 10px; font-weight: 750; letter-spacing: 1.7px; }
.showcase-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #80d1c8; box-shadow: 0 0 0 4px rgb(128 209 200 / 12%); }
.showcase-content h1 { margin: 0; color: #fff; font-size: clamp(36px, 4.3vw, 58px); font-weight: 730; letter-spacing: -2.7px; line-height: 1.08; }
.showcase-description { max-width: 420px; margin: 17px 0 0; color: rgb(235 245 247 / 72%); font-size: 14px; line-height: 1.75; }

.learning-visual { position: relative; display: grid; height: clamp(250px, 33vh, 340px); margin: 15px 0 16px; place-items: center; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid rgb(210 241 240 / 14%); border-radius: 50%; }
.visual-orbit--outer { width: min(76%, 320px); transform: rotate(-24deg) scaleY(.53); }
.visual-orbit--inner { width: min(58%, 245px); transform: rotate(28deg) scaleY(.53); }
.visual-book { display: grid; width: 180px; height: 150px; place-items: center; filter: drop-shadow(0 25px 28px rgb(0 0 0 / 21%)); animation: book-float 6s ease-in-out infinite; }
.visual-book svg { width: 100%; height: 100%; overflow: visible; }
.visual-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #8dd7ce; box-shadow: 0 0 19px rgb(141 215 206 / 75%); }
.visual-spark--one { top: 23%; left: 27%; }
.visual-spark--two { right: 24%; bottom: 22%; width: 5px; height: 5px; background: #e7bd69; box-shadow: 0 0 17px rgb(231 189 105 / 70%); }
.visual-chip { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 196px; padding: 10px 13px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 13px; background: rgb(255 255 255 / 10%); box-shadow: 0 12px 32px rgb(0 0 0 / 13%); backdrop-filter: blur(12px); }
.visual-chip--lessons { top: 24%; right: 2%; }
.visual-chip--progress { bottom: 18%; left: 0; }
.visual-chip-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgb(141 215 206 / 15%); color: #9ce0d6; }
.visual-chip-icon--gold { background: rgb(231 189 105 / 15%); color: #f1cc7e; }
.visual-chip-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visual-chip > span:last-child { display: grid; gap: 3px; }
.visual-chip strong { color: #fff; font-size: 10px; font-weight: 700; }
.visual-chip small { color: rgb(235 245 247 / 66%); font-size: 9px; }
.showcase-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 12%); }
.footer-shield { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgb(141 215 206 / 12%); color: #9ce0d6; }
.footer-shield svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.showcase-footer > span:last-child { display: grid; gap: 3px; }
.showcase-footer strong { color: #fff; font-size: 10px; }
.showcase-footer small { color: rgb(235 245 247 / 61%); font-size: 9px; }

.login-main { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; padding: 31px clamp(28px, 5vw, 72px) 22px; background: #fff; }
.login-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #8a99a6; font-size: 9px; font-weight: 750; letter-spacing: 1.2px; }
.login-help { position: relative; z-index: 3; }
.login-help summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #e4ebf0; border-radius: 9px; color: #586d7d; cursor: pointer; font-size: 10px; font-weight: 650; letter-spacing: 0; list-style: none; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-help-panel { position: absolute; top: 43px; right: 0; width: min(330px, calc(100vw - 48px)); padding: 16px; border: 1px solid #e1e9ef; border-radius: 12px; background: #fff; box-shadow: 0 16px 44px rgb(18 48 74 / 14%); color: #596d7b; font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.65; }
.login-help-panel strong { color: #12304a; font-size: 12px; }
.login-help-panel p { margin: 7px 0 0; }

.login-card { width: min(100%, 440px); margin: auto; padding: 45px 0 35px; }
.login-card-heading { margin-bottom: 27px; }
.login-mobile-mark { display: none; }
.login-card-eyebrow { margin: 0 0 9px; color: #087f82; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.login-card-heading h2 { margin: 0; color: #12304a; font-size: clamp(26px, 3vw, 33px); font-weight: 740; letter-spacing: -1.15px; line-height: 1.15; }
.login-description { margin: 9px 0 0; color: #71818e; font-size: 12px; line-height: 1.6; }

.login-form { display: grid; gap: 19px; }
.login-form label { display: grid; gap: 8px; color: #243b4b; }
.field-label { font-size: 11px; font-weight: 700; }
.login-input-wrap { display: flex; height: 51px; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid #dce5eb; border-radius: 11px; background: #fff; color: #8394a1; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-input-wrap:focus-within { border-color: #168a8c; box-shadow: 0 0 0 4px rgb(8 127 130 / 10%); }
.login-input-wrap.is-invalid { border-color: #ca5c5c; background: #fffafa; }
.login-input-wrap > svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.login-input-wrap input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #192b3a; font-size: 12px; }
.login-input-wrap input::placeholder { color: #a0adb7; opacity: 1; }
.login-input-wrap:has(input:autofill), .login-input-wrap:has(input:-webkit-autofill) { background: #e8f0fe; }
.login-input-wrap input:autofill, .login-input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #e8f0fe inset; -webkit-text-fill-color: #192b3a; }
.login-password-wrap { padding-right: 7px; }
.login-password-wrap input { padding-right: 2px; }
.login-password-toggle { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #718391; cursor: pointer; transition: color .18s ease, background .18s ease; }
.login-password-toggle:hover { background: #f1f6f7; color: #087f82; }
.login-password-toggle svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-password-toggle svg[hidden] { display: none !important; }
.login-submit { display: flex; width: 100%; min-height: 51px; align-items: center; justify-content: center; gap: 10px; margin-top: 5px; padding: 0 18px; border: 0; border-radius: 11px; background: linear-gradient(100deg, #087f82, #0b7378); box-shadow: 0 8px 18px rgb(8 127 130 / 19%); color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.login-submit svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.login-submit:hover { transform: translateY(-1px); background: linear-gradient(100deg, #087477, #095f68); box-shadow: 0 12px 22px rgb(8 127 130 / 25%); }
.login-submit:hover svg { transform: translateX(3px); }
.login-card-footer { display: grid; justify-items: center; gap: 17px; margin-top: 21px; }
.login-recovery { color: #087f82; font-size: 11px; font-weight: 750; text-decoration: none; }
.login-recovery:hover { color: #075e62; text-decoration: underline; text-underline-offset: 3px; }
.login-card-footer > span { color: #8a98a3; font-size: 9px; }
.login-card-footer > span strong { color: #526777; font-weight: 650; }
.login-status, .login-error { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 12px 13px; border: 1px solid; border-radius: 10px; font-size: 10px; line-height: 1.55; }
.login-status svg, .login-error svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-status { border-color: #cce8d8; background: #f1faf4; color: #176746; }
.login-error { border-color: #f1d6d3; background: #fff7f6; color: #a64444; }
.login-legal { display: flex; align-items: center; justify-content: center; gap: 10px; color: #9ba7b0; font-size: 9px; }
.legal-divider { width: 3px; height: 3px; border-radius: 50%; background: #bcc6cd; }

.login-brand:focus-visible, .login-help summary:focus-visible, .login-recovery:focus-visible, .login-password-toggle:focus-visible, .login-submit:focus-visible { outline: 3px solid rgb(8 127 130 / 34%); outline-offset: 3px; }

@keyframes book-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

@media (max-width: 960px) {
    .login-shell { grid-template-columns: minmax(330px, .82fr) minmax(430px, 1.18fr); }
    .login-showcase { padding-right: 34px; padding-left: 34px; }
    .showcase-content h1 { font-size: clamp(35px, 5vw, 48px); }
    .visual-chip { min-width: 174px; padding: 9px; }
    .visual-chip--lessons { right: -13px; }
    .visual-chip--progress { left: -13px; }
    .login-main { padding-right: 38px; padding-left: 38px; }
}

@media (max-width: 780px) {
    .login-shell { display: block; min-height: 100vh; background: #f4f7fa; }
    .login-showcase { display: none; }
    .login-main { min-height: 100vh; padding: 19px clamp(18px, 6vw, 32px) 18px; background: radial-gradient(ellipse at 50% -10%, #e1f2f0 0, #f4f7fa 42%, #f4f7fa 100%); }
    .login-topline { color: #087f82; }
    .login-card { width: min(100%, 460px); margin: auto; padding: 36px clamp(21px, 6vw, 34px); border: 1px solid #e5ebef; border-radius: 19px; background: #fff; box-shadow: 0 18px 48px rgb(26 54 73 / 8%); }
    .login-mobile-mark { display: grid; width: 43px; height: 43px; margin-bottom: 25px; border: 0; border-radius: 13px; background: #12304a; font-size: 19px; }
    .login-card-heading { margin-bottom: 25px; }
    .login-legal { padding-top: 13px; }
}

@media (max-width: 420px) {
    .login-main { padding-right: 14px; padding-left: 14px; }
    .login-card { padding: 30px 21px; }
    .login-card-footer > span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
