@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans/PlusJakartaSans-Variable.ttf") format("truetype");
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans/PlusJakartaSans-VariableItalic.ttf") format("truetype");
}

:root {
    color-scheme: light;
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-optical-sizing: auto;
    font-variant-numeric: tabular-nums;
    color: #4c4c5c;
    background: #f6f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.auth-page { min-height: 100vh; overflow-x: hidden; position: relative; }
.auth-shell { min-height: 100vh; padding: 50px 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.auth-wrap { width: min(100%, 565px); }
.auth-card { background: #fff; border-radius: 15px; box-shadow: 0 5px 25px rgba(28, 39, 70, .075); padding: 38px 42px 32px; }
.auth-brand { display: flex; justify-content: center; align-items: center; gap: 9px; margin-bottom: 23px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.8px; color: #202635; }
.brand-name span { font-weight: 500; color: #236dc9; }
.brand-mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-12deg); }
.brand-mark span { border-radius: 3px; background: #236dc9; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #88b6ef; }
.auth-heading { text-align: center; margin-bottom: 25px; }
.auth-heading h1 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; color: #292d38; font-weight: 700; }
.auth-heading p { max-width: 360px; margin: 0 auto; line-height: 1.55; color: #858b99; }
.auth-divider { display: flex; align-items: center; gap: 13px; color: #969ca8; font-size: 12px; margin: 18px 0 22px; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #e9ebef; flex: 1; }
.field { margin-bottom: 20px; }
.field label, .otp-label { display: block; margin-bottom: 8px; font-weight: 600; color: #424755; }
.field label span, .otp-label span { color: #e65062; }
.field input, .otp-fallback { width: 100%; height: 42px; padding: 9px 12px; border: 1px solid #e2e5eb; border-radius: 5px; background: #fff; color: #2b3140; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #a9afba; }
.field input:focus, .otp-digit:focus, .otp-fallback:focus { border-color: #80afea; box-shadow: 0 0 0 3px rgba(35, 109, 201, .13); }
.field-error { margin: 7px 0 0; color: #dc3545; font-size: 12px; }
.primary-button { border: 1px solid #236dc9; border-radius: 5px; background: #236dc9; color: #fff; width: 100%; min-height: 42px; padding: 9px 16px; font-weight: 600; cursor: pointer; transition: background .15s; }
.primary-button:hover { background: #1b5bad; }
.primary-button:focus-visible, .text-button:focus-visible, a:focus-visible { outline: 3px solid rgba(35, 109, 201, .35); outline-offset: 3px; }
.auth-note { text-align: center; margin: 24px 0 0; color: #8b929f; }
.auth-note a, .text-button { color: #236dc9; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.auth-footer { text-align: center; color: #9399a5; margin: 25px 0 0; }
.auth-decoration { position: absolute; width: 450px; height: 420px; pointer-events: none; opacity: .62; background: radial-gradient(circle at 72% 34%, transparent 0 28px, #e5ebf7 29px 36px, transparent 37px), radial-gradient(circle at 45% 62%, #e2e9f7 0 85px, transparent 86px), radial-gradient(circle at 78% 80%, #e8eef8 0 100px, transparent 101px); }
.auth-decoration::after { content: ""; position: absolute; width: 300px; height: 300px; left: 30px; top: 65px; border: 28px solid #e8eef8; border-radius: 44% 56% 57% 43%; transform: rotate(28deg); }
.auth-decoration-top { top: -85px; right: -95px; }
.auth-decoration-bottom { bottom: -85px; left: -95px; transform: rotate(180deg); }
.otp-heading { margin-top: 8px; margin-bottom: 34px; }
.otp-heading p { margin-bottom: 14px; }
.masked-email { color: #303746; font-size: 26px; letter-spacing: .3px; }
.otp-label { margin-bottom: 10px; }
.otp-digits { display: flex; gap: 9px; margin-bottom: 20px; }
.otp-digit { width: 0; flex: 1; min-width: 0; height: 55px; text-align: center; font-size: 23px; font-weight: 600; border: 1px solid #e2e5eb; border-radius: 5px; outline: none; }
.otp-error { margin: -10px 0 18px; }
.otp-fallback { margin-bottom: 20px; }
.otp-assistance { display: flex; align-items: center; justify-content: center; gap: 5px; color: #8b929f; margin-top: 24px; }
.otp-assistance form { display: inline; }
.text-button { background: none; border: 0; padding: 0; cursor: pointer; }
.status-message { background: #eaf5ed; color: #216d37; padding: 10px 12px; border-radius: 5px; margin-bottom: 20px; text-align: center; }
.verified-card { max-width: 480px; text-align: center; }
.verified-card h1 { font-size: 21px; color: #292d38; }
.verified-card p { margin-bottom: 25px; }
.verified-icon { width: 46px; height: 46px; line-height: 46px; margin: 0 auto 18px; border-radius: 50%; background: #eaf5ed; color: #216d37; font-size: 26px; }

@media (max-width: 600px) {
    .auth-shell { padding: 30px 17px; }
    .auth-card { padding: 30px 24px; }
    .auth-decoration { opacity: .3; }
    .otp-digits { gap: 6px; }
    .otp-digit { height: 49px; }
}
