/* Scoped to the public sign-in and registration pages. */
body.auth-page {
    --auth-navy: #003366;
    --auth-ink: #172b43;
    --auth-muted: #5d6b7d;
    --auth-border: #d8e1eb;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--auth-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page a { color: var(--auth-navy); text-decoration: none; }
.auth-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-page :is(a, button, input, select):focus-visible {
    outline: 3px solid #147d92;
    outline-offset: 4px;
}
.auth-page .auth-skip-link {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 10000;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
}
.auth-page .auth-skip-link:focus { top: 12px; }
.auth-page .auth-header, .auth-page .auth-footer {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.auth-page .auth-header { padding: 14px 20px; border-bottom: 1px solid #e9edf2; }
.auth-page .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}
.auth-page .auth-brand:hover { text-decoration: none; }
.auth-page .auth-brand img { display: block; border-radius: 10px; }
.auth-page .auth-brand-caption {
    display: block;
    margin-top: 4px;
    color: var(--auth-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}
.auth-page .auth-home-link { font-size: 11px; font-weight: 600; padding: 10px 0; }
.auth-page .auth-home-link span { margin-right: 4px; }
.auth-page .auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 0;
    background: white;
}
.auth-page .auth-story {
    min-width: 0;
    padding: 28px 36px;
    background: radial-gradient(ellipse at 100% 10%, #155775 0, transparent 65%), #092c50;
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    position: relative;
}
.auth-page .auth-story > * { width: 100%; max-width: 380px; margin-inline: auto; }
.auth-page .auth-story-label {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #c0e6ea;
}
.auth-page .auth-status-dot {
    display: inline-block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70d4be;
    box-shadow: 0 0 0 4px #70d4be16;
}
.auth-page .auth-story h2 {
    margin: 0;
    color: white;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1.8px;
    line-height: 1.15;
}
.auth-page .auth-story-intro > p:last-child {
    max-width: 370px;
    margin: 14px 0 0;
    color: #c4d4e4;
    font-size: 13px;
    line-height: 1.8;
}
.auth-page .auth-product {
    max-width: 360px;
    border: 1px solid #ffffff30;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f4f8;
    box-shadow: 0 16px 30px #001a3230;
    color: var(--auth-ink);
}
.auth-page .auth-product-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
}
.auth-page .auth-product-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--auth-navy);
    color: white;
    font-size: 13px;
    font-weight: 800;
}
.auth-page .auth-preview-tag {
    margin-left: auto;
    color: #637287;
    font-size: 8px;
    letter-spacing: 1px;
}
.auth-page .auth-product-map { position: relative; }
.auth-page .auth-product-map svg { display: block; width: 100%; height: auto; }
.auth-page .auth-map-caption {
    position: absolute;
    bottom: 12px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    padding: 5px 9px;
    background: #fff;
    font-size: 9px;
    font-weight: 600;
}
.auth-page .auth-map-caption .auth-status-dot { background: #147d92; }
.auth-page .auth-product-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.auth-page .auth-product-summary > div { display: flex; align-items: center; gap: 10px; }
.auth-page .auth-summary-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 36px;
    border-radius: 8px;
    color: var(--auth-navy);
    background: #edf3f9;
}
.auth-page .auth-product-summary strong { display: block; font-size: 11px; font-weight: 600; }
.auth-page .auth-product-summary small { display: block; color: var(--auth-muted); font-size: 9px; }
.auth-page .auth-summary-check { color: #147d92; font-size: 16px; }
.auth-page .auth-story-features { display: grid; gap: 20px; }
.auth-page .auth-story-features > div { display: flex; align-items: flex-start; gap: 13px; }
.auth-page .auth-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border: 1px solid #ffffff20;
    border-radius: 9px;
    background: #ffffff08;
    color: #b5e5e4;
}
.auth-page .auth-story-features p { margin: 0; }
.auth-page .auth-story-features strong { display: block; font-size: 12px; font-weight: 600; }
.auth-page .auth-story-features p span { display: block; margin-top: 3px; font-size: 11px; color: #b8cddd; }
.auth-page .auth-story-bottom { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #b8cddd; }
.auth-page .auth-story-rule { width: 24px; height: 1px; background: #79a9bc; }
.auth-page .auth-form-panel {
    min-width: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.auth-page .auth-form-content { width: 100%; max-width: 440px; }
.auth-signup-page .auth-form-content { max-width: 720px; }
.auth-page .auth-form-heading { margin-bottom: 30px; }
.auth-page .auth-eyebrow { margin: 0 0 12px; color: #46617c; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.auth-page h1 { margin: 0; color: var(--auth-ink); font-size: 27px; font-weight: 650; letter-spacing: -1px; line-height: 1.25; }
.auth-page .auth-form-heading > p:last-child { margin: 12px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-page .auth-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.auth-page #login-form { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-page .input-group { min-width: 0; margin: 0; }
.auth-page .input-group > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--auth-ink); }
.auth-page .input-group :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 1px 2px #172b4303;
    transition: border-color .15s, box-shadow .15s;
}
.auth-page input::placeholder { color: #66758a; opacity: 1; }
.auth-page .input-group :is(input, select):hover { border-color: #a3b4c8; }
.auth-page .input-group :is(input, select):focus {
    outline: none;
    border-color: #147d92;
    box-shadow: 0 0 0 3px #147d921c;
}
.auth-page .input-group [aria-invalid="true"] { border-color: #bd303b; }
.auth-page .input-group select.country-select { padding-right: 34px; }
.auth-page .auth-password-control { position: relative; }
.auth-page .auth-password-control input { padding-right: 50px !important; }
.auth-page .eye-icon {
    top: 50%;
    right: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--auth-muted);
}
.auth-page .eye-icon[aria-pressed="true"] .auth-eye-slash { display: none; }
.auth-page .auth-form-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.auth-page .auth-form-options a { font-weight: 600; }
.auth-page .auth-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
}
.auth-page .auth-checkbox input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--auth-navy);
    cursor: pointer;
}
.auth-page .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 49px;
    padding: 12px 20px;
    border: 1px solid var(--auth-navy);
    border-radius: 8px;
    background: var(--auth-navy);
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px #00336612;
    transition: background .15s, box-shadow .15s;
}
.auth-page .auth-submit:hover:not(:disabled) { background: #06477c; box-shadow: 0 6px 14px #00336624; }
.auth-page .auth-submit:disabled { background: #e1e7ee; border-color: #e1e7ee; color: #657184; cursor: not-allowed; box-shadow: none; }
.auth-page .auth-switch { margin: 26px 0 0; text-align: center; color: var(--auth-muted); font-size: 12px; }
.auth-page .auth-switch a { display: inline-block; font-weight: 600; margin-left: 3px; }
.auth-page .auth-form-note {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e9edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--auth-muted);
    font-size: 11px;
}
.auth-page .auth-form-note svg { flex-shrink: 0; color: #147d92; }
.auth-page .auth-alert { display: flex; margin: 0 0 20px; padding: 12px 14px; border: 1px solid; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.auth-page .auth-alert p { margin: 0; }
.auth-page .auth-alert-error { background: #fff4f4; border-color: #f0c7cb; color: #9b2433; }
.auth-page .auth-alert-info { background: #eff8f6; border-color: #bfded5; color: #216251; }
.auth-page .auth-alert-warning { background: #fff9eb; border-color: #eddaaa; color: #805710; }
.auth-page .error { color: #b32839; font-size: 11px; margin-top: 5px; }
.auth-page .error:empty { display: none; }
.auth-page .auth-footer { flex-direction: column; padding: 14px 20px; border-top: 1px solid #e9edf2; color: var(--auth-muted); font-size: 11px; text-align: center; }
.auth-page .auth-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.auth-page .auth-footer a { color: var(--auth-muted); }

.auth-signup-page .auth-form-heading { margin-bottom: 20px; }
.auth-page .auth-signup-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 14px; }
.auth-page .auth-name-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; grid-column: 1 / -1; }
.auth-page .auth-optional { color: var(--auth-muted); font-weight: 400; font-size: 10px; }
.auth-page .auth-fields-note { grid-column: 1 / -1; margin: 0; color: var(--auth-muted); font-size: 11px; }
.auth-page .auth-full-width { grid-column: 1 / -1; }
.auth-page .auth-input-hint { display: block; margin-top: 5px; color: var(--auth-muted); font-size: 11px; }
.auth-page .phone-input-group { flex-wrap: nowrap; border-color: var(--auth-border); border-radius: 8px; }
.auth-page .phone-input-group:focus-within { border-color: #147d92; box-shadow: 0 0 0 3px #147d921c; }
.auth-page .phone-input-group .country-code-wrapper { min-width: 0; width: 98px; padding: 0 4px 0 8px; gap: 5px; background: #f8fafc; border-color: var(--auth-border); }
.auth-page .country-flag-display { font-size: 16px; }
.auth-page .auth-dial-code { font-size: 11px; font-weight: 600; }
.auth-page .phone-input-group select.country-code-select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; min-height: 46px; padding: 0; border: 0; border-radius: 0; font-size: 11px; opacity: 0; cursor: pointer; }
.auth-page .country-code-wrapper:focus-within { outline: 2px solid #147d92; outline-offset: -3px; }
.auth-page .phone-input-group input[type="tel"] { width: 0; min-height: 46px; padding: 10px; border: 0; border-radius: 0; box-shadow: none; font-size: 16px; }
.auth-page .phone-input-group :is(input, select):focus-visible { outline: 2px solid #147d92; outline-offset: -3px; }
.auth-page .input-group > .auth-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 11px; font-weight: 400; color: var(--auth-muted); line-height: 1.8; }
.auth-page .auth-consent input { margin-top: 2px; }
.auth-page .auth-consent a, .auth-page .auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-page .auth-legal { margin: 0; color: var(--auth-muted); font-size: 11px; line-height: 1.8; }

@media (min-width: 600px) {
    .auth-page .auth-header { padding: 12px 32px; }
    .auth-page .auth-brand { gap: 11px; font-size: 25px; }
    .auth-page .auth-brand-caption { font-size: 9px; letter-spacing: 1.7px; }
    .auth-page .auth-home-link { font-size: 13px; }
    .auth-page .auth-home-link span { margin-right: 8px; }
    .auth-page .auth-footer { flex-direction: row; padding: 12px 32px; text-align: left; }
    .auth-page .auth-form-panel { padding: 28px 32px; }
    .auth-page h1 { font-size: 30px; }
    .auth-page .auth-eyebrow { font-size: 10px; letter-spacing: 1.6px; }
    .auth-page .auth-form-options { gap: 12px; font-size: 12px; }
    .auth-page .auth-signup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page .auth-name-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .auth-page .auth-form-panel { padding-block: 24px; }
    .auth-page .auth-signup-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .auth-page .auth-password-field { grid-column: auto; }
    .auth-page .auth-phone-field { grid-column: span 2; }
    .auth-page .input-group > label { margin-bottom: 5px; }
    .auth-page .input-group :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select) { min-height: 44px; padding-block: 10px; font-size: 14px; }
    .auth-page .phone-input-group input[type="tel"], .auth-page .phone-input-group select.country-code-select { min-height: 42px; }
    .auth-page .auth-switch { margin-top: 18px; }
    .auth-signup-page .auth-form-heading { margin-bottom: 18px; }
}
@media (min-width: 1200px) {
    .auth-page .auth-shell { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .auth-page .auth-story { display: flex; }
}
@media (min-width: 1024px) and (max-height: 760px) {
    .auth-signup-page .auth-form-panel { padding-block: 16px; }
    .auth-signup-page .auth-form-heading { margin-bottom: 14px; }
    .auth-signup-page .auth-eyebrow { margin-bottom: 8px; }
    .auth-signup-page .auth-signup-form { gap: 12px 14px; }
}
@media (min-width: 1200px) and (max-height: 800px) {
    .auth-page .auth-story { gap: 16px; padding-block: 22px; }
    .auth-page .auth-story-label { margin-bottom: 12px; }
    .auth-page .auth-story h2 { font-size: 32px; }
    .auth-page .auth-product-map { height: 120px; }
    .auth-page .auth-product-map svg { height: 100%; }
    .auth-page .auth-story-features { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
