/* Figma Mw0i5YrPJYNQZrG5c8BJS4, approved for Next on 2026-11-22.
   Login 5:240, 5:306, 5:344. First login v1.0, board 42:111. */
@font-face {
    font-family: Inter;
    src: url("/static/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.scan-auth-page {
    --auth-ink: #1e1e1e;
    --auth-muted: #757575;
    --auth-primary: #6b35df;
    margin: 0;
    color: var(--auth-ink);
    background: #f7f7fb;
    font-family: Inter, "Segoe UI", sans-serif;
    font-optical-sizing: none;
}

.scan-auth-page * { box-sizing: border-box; }
.scan-auth-page p, .scan-auth-page h1 { margin: 0; }

.scan-auth-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 32px;
}

.scan-auth-card {
    display: grid;
    grid-template-columns: 548fr 652fr;
    width: min(1200px, 100%);
    min-height: 720px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 4px rgb(12 12 13 / 5%), 0 1px 4px rgb(12 12 13 / 10%);
}

.scan-auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    padding: 48px;
    background: #f0ebfa;
}

.scan-auth-brand {
    position: relative;
    flex: none;
    width: 248px;
    height: 33.14px;
}

.scan-auth-brand img { position: absolute; display: block; }
.scan-auth-wordmark { top: 0; left: .07%; }
.scan-auth-divider { top: 11.92%; left: 63.03%; }
.scan-auth-travel { top: 31.88%; left: 68.49%; }
.scan-auth-mobile-brand { display: none; }

.scan-auth-mark {
    display: grid;
    place-items: center;
    min-height: 320px;
}

.scan-auth-mark img { display: block; }
.scan-auth-hero-copy { display: grid; gap: 16px; }
.scan-auth-hero-title { font: 600 40px/48px Inter, "Segoe UI", sans-serif; }
.scan-auth-description { color: var(--auth-muted); font-size: 16px; line-height: 24px; }

.scan-auth-panel {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 32px;
}

.scan-auth-content {
    display: grid;
    gap: 24px;
    width: min(384px, 100%);
}

.scan-auth-login { gap: 32px; }
.scan-auth-heading { display: grid; gap: 16px; }
.scan-auth-heading h1 { font-size: 32px; font-weight: 600; line-height: 40px; }
.scan-auth-login h1 { letter-spacing: -.02em; }

.scan-auth-form,
.scan-auth-password-fields,
.scan-auth-password-entry,
.scan-auth-field { display: grid; min-width: 0; }

.scan-auth-form { gap: 24px; }
.scan-auth-login .scan-auth-form { gap: 28.8px; }
.scan-auth-password-fields { gap: 20px; }
.scan-auth-password-entry { gap: 8px; }
.scan-auth-field { gap: 9.6px; font-size: 19.2px; line-height: 1.4; }
.scan-auth-hint { color: var(--auth-muted); font-size: 14px; line-height: 20px; }

.scan-auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 19.2px;
    border: 1.2px solid #d9d9d9;
    border-radius: 9.6px;
    background: #fff;
    color: var(--auth-ink);
    font: 400 19.2px/1 Inter, "Segoe UI", sans-serif;
}

.scan-auth-field input::placeholder { color: #b3b3b3; opacity: 1; }
.scan-auth-field input:focus-visible { border-color: var(--auth-primary); }
.scan-auth-password { position: relative; }
.scan-auth-password input { padding-right: 52px; }

.scan-auth-toggle {
    position: absolute;
    top: 0;
    right: 4px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 9.6px;
    background: transparent;
    cursor: pointer;
}

.scan-auth-toggle[hidden] { display: none; }
.scan-auth-toggle img { display: block; }

.scan-auth-submit {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9.6px;
    background: var(--auth-primary);
    color: #fff;
    font: 600 19.2px/1.2 Inter, "Segoe UI", sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.scan-auth-submit:hover { background: #5b27cb; }
.scan-auth-submit:active { background: #4d18a8; }
.scan-auth-field input:focus-visible,
.scan-auth-toggle:focus-visible,
.scan-auth-submit:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 3px; }

.scan-auth-alert {
    padding: 14px 16px;
    border-radius: 8px;
    background: #fee9e7;
    color: #900b09;
    font-size: 14px;
    line-height: 20px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.scan-auth-help { display: grid; gap: 4px; color: var(--auth-muted); font-size: 14px; line-height: 20px; }
.scan-auth-help-title { color: var(--auth-ink); font-weight: 500; }
.scan-auth-footer { color: var(--auth-muted); font-size: 12px; line-height: 18px; }

@media (max-width: 1000px) {
    .scan-auth-page { background: #fff; }
    .scan-auth-layout {
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 40px 24px 24px;
    }
    .scan-auth-card {
        display: block;
        min-height: 0;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }
    .scan-auth-hero { display: none; }
    .scan-auth-panel, .scan-auth-footer { width: min(100%, 480px); margin-inline: auto; }
    .scan-auth-panel { display: block; place-items: initial; padding: 0; }
    .scan-auth-mobile-brand { display: block; margin-bottom: 64px; }
    .scan-auth-content { width: 100%; }
    .scan-auth-heading h1 { font-size: 28px; line-height: 36px; }
    .scan-auth-footer { margin-top: auto; padding-top: 32px; }
}
