@font-face {
    font-family: Quicksand;
    src: url("fonts/Quicksand-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Quicksand;
    src: url("fonts/Quicksand-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Quicksand;
    src: url("fonts/Quicksand-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Google Sans";
    src: url("fonts/GoogleSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #081828;
    --ink-secondary: #5b6b7b;
    --blue: #2266aa;
    --yellow: #f9b514;
    --yellow-hover: #e5a200;
    --yellow-soft: #fff5d6;
    --border: #c7d0da;
    --danger: #b3261e;
    font-family: Quicksand, Arial, sans-serif;
    font-weight: 500;
    font-synthesis: none;
    background: #fff;
    color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--yellow-soft); color: var(--ink); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-180%); border-radius: 8px; padding: 12px 18px; background: #fff; color: var(--ink); box-shadow: 0 4px 20px #08182826; }
.skip-link:focus { transform: translateY(0); }
.auth-shell { min-height: 100vh; min-height: 100svh; }
.brand-side { display: none; }
.auth-column { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; min-width: 0; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.brand-home { display: inline-flex; border-radius: 4px; }
.brand-home img { width: 168px; height: auto; }
.locale-label { font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.auth-main { display: flex; flex: 1; padding: 28px 24px max(24px, env(safe-area-inset-bottom)); outline: none; }
.auth-content { display: flex; flex-direction: column; width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card { display: flex; flex-direction: column; gap: 24px; }
.card-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-heading h1 { font-size: clamp(28px, 6vw, 34px); line-height: 1.16; font-weight: 700; letter-spacing: -.7px; text-wrap: balance; }
.card-heading > p { color: var(--ink-secondary); font-size: 16px; line-height: 1.55; }
.heading-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-soft); margin-bottom: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; line-height: 1.5; font-weight: 700; }
.field input:not([type="hidden"]) { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #718193; opacity: 1; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px #2266aa26; }
.field input.input-validation-error { border-color: var(--danger); }
.field input.input-validation-error:focus { box-shadow: 0 0 0 3px #b3261e20; }
.field input.code-input { font-size: 24px; font-weight: 700; letter-spacing: 5px; text-align: center; }
.field-error, .field-help { font-size: 13px; line-height: 1.5; }
.field-error { color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }
.field-help { color: var(--ink-secondary); }
.password-input { position: relative; }
.password-input.is-enhanced input { padding-right: 86px; }
.password-toggle { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 76px; border: 0; border-radius: 7px; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.password-toggle:hover { background: #2266aa0c; }
.forgot-link { align-self: flex-end; font-size: 13px; line-height: 1.5; padding: 6px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 13px 20px; border: 1px solid transparent; border-radius: 10px; font-size: 16px; line-height: 1.5; font-weight: 700; transition: background-color .15s, border-color .15s; text-align: center; }
.button:hover { text-decoration: none; }
.button:disabled, .button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: var(--yellow-hover); }
.button-primary:focus-visible { outline-color: var(--ink); }
.button-social { position: relative; background: #fff; color: var(--ink); border-color: var(--border); font-weight: 600; }
.button-social:hover { background: #f6f7f9; border-color: #7f90a2; }
.button-social img { flex-shrink: 0; }
.button-google { border-color: #747775; font-family: "Google Sans", Arial, sans-serif; font-size: 14px; color: #1f1f1f; font-weight: 500; }
.social-buttons { display: flex; flex-direction: column; gap: 12px; }
.form-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink-secondary); }
.form-divider::before, .form-divider::after { content: ""; height: 1px; background: #e6eaef; flex: 1; }
.card-footnote { font-size: 14px; line-height: 1.6; color: var(--ink-secondary); }
.card-footnote a { display: inline-block; padding-block: 4px; }
.legal-consent { font-size: 12px; line-height: 1.7; color: var(--ink-secondary); }
.legal-consent a { text-decoration: underline; text-underline-offset: 2px; }
.resend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13px; line-height: 1.5; color: var(--ink-secondary); }
.button-link { color: var(--blue); background: transparent; border: none; font-size: 13px; line-height: 1.5; font-weight: 700; padding: 10px 0; text-align: left; }
.button-link:hover { text-decoration: underline; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.form-alert img { flex-shrink: 0; margin-top: 1px; }
.form-alert-error { background: #fde9e7; border-color: #f3c6c2; color: var(--danger); }
.form-alert-info { background: #e7f1fa; border-color: #c6dff3; color: #2266aa; }
.validation-summary-valid { display: none; }
.validation-summary-errors { background: #fde9e7; border: 1px solid #f3c6c2; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--danger); }
.validation-summary ul { margin: 0; padding-left: 18px; }
.return-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 20px 0 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.6; text-align: center; }
.return-note img { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.request-reference { font-size: 12px; line-height: 1.6; color: var(--ink-secondary); overflow-wrap: anywhere; }
.auth-footer { margin-top: auto; padding-top: 36px; font-size: 12px; line-height: 1.5; color: var(--ink-secondary); }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-secondary); font-size: 12px; font-weight: 600; }
.auth-footer a:hover { color: var(--ink); }
.support-link { margin-top: 0; }
@media (min-width: 768px) {
    .auth-topbar { padding: 24px 40px; }
    .auth-main { align-items: center; padding: 36px 40px; }
    .auth-content { max-width: 480px; }
    .auth-card { padding: 32px; background: #fff; border: 1px solid #e6eaef; border-radius: 24px; box-shadow: 0 16px 48px -28px #08182855; }
    .auth-footer { margin-top: 24px; padding-top: 0; }
    .auth-footer nav { justify-content: center; }
    .auth-footer a { min-height: 30px; }
    .support-link { width: 100%; justify-content: center; margin-top: 5px; }
}
@media (min-width: 1024px) {
    .auth-shell { display: grid; grid-template-columns: 1fr 1fr; }
    .brand-side { display: block; padding: 16px 0 16px 16px; }
    .brand-panel { position: sticky; top: 16px; display: flex; flex-direction: column; min-height: 650px; height: calc(100vh - 32px); height: calc(100svh - 32px); padding: clamp(36px, 4vw, 64px); background: var(--yellow); color: var(--ink); border-radius: 24px; overflow: hidden; isolation: isolate; }
    .brand-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .3px; margin-bottom: 36px; }
    .brand-panel h2 { position: relative; z-index: 1; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 700; }
    .brand-intro { position: relative; z-index: 1; max-width: 370px; margin-top: 22px; font-size: 18px; line-height: 1.6; }
    .brand-benefits { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; margin: 40px 0 0; padding: 0; list-style: none; }
    .brand-benefits li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
    .brand-benefits img { flex-shrink: 0; }
    .brand-paw { position: absolute; width: clamp(240px, 28vw, 420px); height: auto; bottom: -105px; right: -70px; opacity: .33; transform: rotate(-15deg); z-index: -1; }
    .brand-signoff { margin-top: auto; padding-top: 36px; font-size: 14px; line-height: 1.6; }
    .brand-signoff strong { font-weight: 700; }
    .auth-topbar { width: 100%; max-width: 560px; margin: 0 auto; }
    .auth-main { padding-top: 24px; padding-bottom: 32px; }
    .auth-content { max-width: 440px; }
    .auth-card { padding: 28px; }
}
@media (min-width: 1440px) {
    .auth-shell { grid-template-columns: 48% 52%; }
    .auth-topbar { max-width: 600px; }
    .auth-content { max-width: 480px; }
    .auth-card { padding: 32px; }
}
@media (max-width: 359px) {
    .auth-topbar, .auth-main { padding-left: 18px; padding-right: 18px; }
    .brand-home img { width: 144px; }
    .button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
