:root {
    color-scheme: light;
    --auth-ink: #10231f;
    --auth-muted: #60716c;
    --auth-line: #dbe7e2;
    --auth-soft: #f3f8f6;
    --auth-white: #ffffff;
    --auth-night: #071512;
    --auth-night-2: #0d2722;
    --auth-cyan: #22c7e8;
    --auth-green: #34d399;
    --auth-danger: #c83d5a;
    --auth-success: #137d57;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
    margin: 0;
    color: var(--auth-ink);
    background: #eaf2ef;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

a { color: inherit; }

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 199, 232, .14), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(52, 211, 153, .13), transparent 32%),
        #eaf2ef;
}

.auth-shell {
    width: min(1060px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(16, 35, 31, .10);
    border-radius: 26px;
    background: var(--auth-white);
    box-shadow: 0 30px 80px rgba(17, 43, 36, .16);
}

.auth-context {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: 42px;
    overflow: hidden;
    color: #f5fffb;
    background:
        linear-gradient(155deg, rgba(34, 199, 232, .15), transparent 42%),
        linear-gradient(335deg, rgba(52, 211, 153, .16), transparent 42%),
        var(--auth-night);
}

.auth-context::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -190px;
    bottom: -200px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(255, 255, 255, .025), 0 0 0 108px rgba(255, 255, 255, .018);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.auth-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.auth-brand-mark img { width: 30px; height: 30px; display: block; }
.auth-brand strong { display: block; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.auth-brand small { display: block; margin-top: 2px; color: #9fb8b0; font-size: 12px; font-weight: 650; }

.auth-context-copy { position: relative; z-index: 1; }

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #79eadb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-context h1 {
    max-width: 420px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.045em;
    font-weight: 850;
}

.auth-context-copy > p {
    max-width: 430px;
    margin: 20px 0 0;
    color: #bed0ca;
    font-size: 15px;
    line-height: 1.75;
}

.auth-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #dceae5;
    font-size: 13px;
    font-weight: 650;
}

.auth-points i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, .24);
    border-radius: 9px;
    color: #6ee7b7;
    background: rgba(52, 211, 153, .09);
}

.auth-context-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    color: #adc2bb;
    background: rgba(255, 255, 255, .045);
    font-size: 12px;
    line-height: 1.55;
}

.auth-context-note i { color: #67e8f9; font-size: 16px; }

.auth-main {
    display: grid;
    place-items: center;
    padding: 42px 50px;
    background: #fbfdfc;
}

.auth-card { width: min(440px, 100%); }
.auth-mobile-brand { display: none; margin-bottom: 30px; }
.auth-mobile-brand .auth-brand { color: var(--auth-ink); }
.auth-mobile-brand .auth-brand-mark { border-color: var(--auth-line); background: var(--auth-soft); }
.auth-mobile-brand .auth-brand small { color: var(--auth-muted); }

.auth-card-kicker {
    margin-bottom: 8px;
    color: #0d8fa7;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 32px;
    line-height: 1.16;
    letter-spacing: -.035em;
    font-weight: 850;
}

.auth-subtitle {
    margin: 10px 0 24px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-subtitle strong { color: var(--auth-ink); overflow-wrap: anywhere; }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.auth-alert.error { color: #9e2943; border-color: #f2c6d0; background: #fff2f5; }
.auth-alert.success { color: #116c4d; border-color: #bce7d4; background: #effbf5; }
.auth-alert i { margin-top: 2px; flex: 0 0 auto; }

.auth-google {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #cfddd8;
    border-radius: 14px;
    color: #40534d;
    background: #f7faf9;
    font-size: 13px;
    font-weight: 780;
    text-align: left;
    cursor: not-allowed;
}

.auth-google > i { color: #6b7d77; font-size: 16px; text-align: center; }
.auth-google > span { text-align: center; }
.auth-google > small {
    padding: 4px 7px;
    border-radius: 999px;
    color: #657872;
    background: #e9f0ed;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
    color: #8a9b96;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: #dce6e2; }
.auth-divider span { white-space: nowrap; }

.auth-form { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 8px; }

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-label {
    color: #243a34;
    font-size: 13px;
    font-weight: 750;
}

.auth-label-row a,
.auth-meta a {
    color: #087f96;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.auth-label-row a:hover,
.auth-meta a:hover { text-decoration: underline; }

.auth-inline-form { display: inline; margin: 0; }
.auth-inline-button {
    margin: 0;
    padding: 0;
    border: 0;
    color: #087f96;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.auth-inline-button:hover { text-decoration: underline; }

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

.auth-control > i {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: #789089;
    font-size: 16px;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 54px;
    padding: 0 46px;
    border: 1px solid #cadbd5;
    border-radius: 14px;
    outline: none;
    color: var(--auth-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-input.no-trailing { padding-right: 16px; }
.auth-input.code { letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.auth-input::placeholder { color: #94a6a0; font-weight: 500; }
.auth-input:hover { border-color: #a9c1b9; }
.auth-input:focus { border-color: #1aa9c3; box-shadow: 0 0 0 4px rgba(34, 199, 232, .13); }

.auth-password-toggle {
    position: absolute;
    right: 8px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #657b74;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle:hover { color: var(--auth-ink); background: var(--auth-soft); }
.auth-password-toggle:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible { outline: 3px solid rgba(34, 199, 232, .35); outline-offset: 2px; }

.auth-help {
    color: #778983;
    font-size: 11px;
    line-height: 1.55;
}

.auth-submit,
.auth-secondary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.auth-submit {
    border: 0;
    color: #03221c;
    background: linear-gradient(110deg, var(--auth-green), #2dd4bf 52%, var(--auth-cyan));
    box-shadow: 0 14px 30px rgba(30, 184, 170, .23);
}

.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(30, 184, 170, .29); }
.auth-submit:disabled,
.auth-secondary:disabled { opacity: .58; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-secondary {
    border: 1px solid #bad9d1;
    color: #176b5a;
    background: #effaf6;
    box-shadow: none;
}

.auth-secondary:hover:not(:disabled) { border-color: #77c6b3; background: #e5f7f1; }

.auth-meta {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: #7b8e88;
    font-size: 11px;
    text-align: center;
}

.auth-footnote i { color: #13846a; }

.auth-status-card {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: var(--auth-soft);
}

.auth-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.auth-status-head strong { display: block; color: var(--auth-ink); font-size: 13px; }
.auth-status-head small { display: block; margin-top: 4px; color: var(--auth-muted); font-size: 11px; line-height: 1.5; }

.auth-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: #14735a;
    background: #dff6ec;
    font-size: 10px;
    font-weight: 800;
}

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.auth-code-box {
    min-width: 0;
    height: 54px;
    border: 1px solid #bfd2cc;
    border-radius: 12px;
    outline: 0;
    color: var(--auth-ink);
    background: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 850;
}

.auth-code-box:focus,
.auth-code-box.is-filled { border-color: #1aa9c3; box-shadow: 0 0 0 3px rgba(34, 199, 232, .12); }

.auth-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #c7e6dc;
    border-radius: 12px;
    color: #3e5e55;
    background: #f0faf6;
    font-size: 11px;
}

.auth-timer strong { color: #10725b; font-variant-numeric: tabular-nums; }
.auth-timer.is-expired { border-color: #ead9ad; color: #785f20; background: #fff9ea; }

.auth-security-page .auth-shell { min-height: 520px; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); }

.auth-link-button {
    text-decoration: none;
}

@media (max-width: 900px) {
    .auth-page { padding: 18px; }
    .auth-shell { width: min(560px, 100%); min-height: auto; grid-template-columns: 1fr; }
    .auth-context { display: none; }
    .auth-main { min-height: min(720px, calc(100dvh - 36px)); padding: 36px; }
    .auth-mobile-brand { display: block; }
}

@media (max-width: 520px) {
    .auth-page { display: block; padding: 0; background: #fbfdfc; }
    .auth-shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-main { min-height: 100vh; min-height: 100dvh; display: block; padding: 24px 18px 32px; }
    .auth-card { margin: 0 auto; }
    .auth-mobile-brand { margin-bottom: 34px; }
    .auth-card h2 { font-size: 28px; }
    .auth-subtitle { margin-bottom: 22px; }
    .auth-form { gap: 15px; }
    .auth-input { height: 52px; }
    .auth-meta { flex-wrap: wrap; }
    .auth-code-grid { gap: 6px; }
    .auth-code-box { height: 48px; border-radius: 10px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
