/* Shared authentication surfaces, aligned with the QR Connect dashboard. */
:root {
    --auth-ink: #1d1d1f;
    --auth-muted: #6e6e73;
    --auth-line: #e5e5e7;
    --auth-surface: #f5f5f7;
    --auth-blue: #0071e3;
    --auth-danger: #c0342b;
}
.auth-page { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--auth-surface); color: var(--auth-ink); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Noto Sans KR', 'Helvetica Neue', sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; color-scheme: light; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page :where(button, input) { font: inherit; }
.auth-page button, .auth-page a, .auth-page input { -webkit-tap-highlight-color: transparent; }
.auth-page :focus-visible { outline: 3px solid #0071e366; outline-offset: 3px; }
.auth-page .hidden, .auth-page [hidden] { display: none !important; }
.auth-page .auth-nav { background: #fff; border-bottom: 1px solid var(--auth-line); }
.auth-page .nav-inner { height: 65px; max-width: 1440px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-page .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--auth-ink); text-decoration: none; font-size: 19px; font-weight: 650; letter-spacing: -.65px; white-space: nowrap; }
.auth-page .logo-icon { display: grid; place-items: center; width: 28px; height: 28px; }
.auth-page .logo-icon svg { width: 27px; height: 27px; stroke-width: 1.8; }
.auth-page .nav-link { color: var(--auth-muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.auth-page .nav-link:hover { color: var(--auth-blue); }
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; border: 1px solid var(--auth-line); border-radius: 16px; background: #fff; }
.auth-heading { margin-bottom: 24px; }
.auth-title { margin: 0 0 10px; color: var(--auth-ink); font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -1.1px; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.auth-subtitle { margin: 0; color: var(--auth-muted); font-size: 13px; line-height: 1.7; letter-spacing: -.15px; }
.form-stack { display: grid; gap: 14px; }
.form-input-wrapper { min-width: 0; }
.form-label { display: block; margin-bottom: 7px; color: #515154; font-size: 12px; font-weight: 500; }
.form-input-modern { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d2d2d7; border-radius: 8px; background: #fff; color: var(--auth-ink); font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.form-input-modern::placeholder { color: #86868b; font-size: 13px; opacity: 1; }
.auth-page .form-input-modern:focus { border-color: var(--auth-blue); outline: none; box-shadow: 0 0 0 3px #0071e326; }
.form-error-global { display: none; margin: 9px 0 0; color: var(--auth-danger); font-size: 12px; line-height: 1.6; }
.form-error-global.show { display: block; }
.btn-submit, .btn-google { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.5; transition: background-color .15s, border-color .15s; }
.btn-submit { margin-top: 20px; background: var(--auth-blue); color: #fff; }
.btn-submit:hover:not(:disabled) { background: #0077ed; }
.btn-google { background: #fff; color: var(--auth-ink); border-color: #d2d2d7; }
.btn-google:hover:not(:disabled) { background: var(--auth-surface); border-color: #a1a1a6; }
.btn-google svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-submit:disabled, .btn-google:disabled { cursor: not-allowed; opacity: .5; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--auth-muted); font-size: 11px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-line); }
.divider span { flex-shrink: 0; }
.alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--auth-line); border-radius: 8px; background: var(--auth-surface); color: #515154; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.alert svg { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; }
.alert-error { border-left: 3px solid var(--auth-danger); }
.alert-error svg { color: var(--auth-danger); }
.alert-success { border-left: 3px solid var(--auth-blue); }
.alert-success svg { color: var(--auth-blue); }
.auth-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--auth-line); text-align: center; }
.auth-footer-text { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.8; }
.auth-footer-link { margin-left: 4px; color: var(--auth-blue); font-weight: 500; text-decoration: none; }
.auth-footer-link:hover, .consent-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer-secondary { margin: 8px 0 0; font-size: 12px; }
.auth-footer-secondary .auth-footer-link { margin-left: 0; color: var(--auth-muted); }
.consent-panel { margin-bottom: 20px; padding: 14px; border: 1px solid var(--auth-line); border-radius: 9px; background: var(--auth-surface); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent-row + .consent-row { margin-top: 12px; }
.consent-label { display: flex; align-items: flex-start; flex: 1; gap: 9px; min-width: 0; cursor: pointer; color: #515154; font-size: 11px; line-height: 1.7; }
.consent-label input { width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--auth-blue); cursor: pointer; }
.consent-label strong { color: var(--auth-ink); font-weight: 500; }
.consent-link { flex-shrink: 0; padding: 0; border: 0; background: transparent; color: var(--auth-blue); cursor: pointer; font-size: 11px; line-height: 1.7; }
.loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
    .auth-page .nav-inner { height: 56px; padding: 0 16px; gap: 12px; }
    .auth-page .logo { gap: 7px; font-size: 17px; }
    .auth-page .logo-icon, .auth-page .logo-icon svg { width: 24px; height: 24px; }
    .auth-page .nav-link { font-size: 12px; }
    .auth-container { padding: 24px 16px; align-items: flex-start; }
    .auth-card { padding: 26px 22px; border-radius: 14px; }
    .auth-title { font-size: 25px; letter-spacing: -.8px; }
    .auth-heading { margin-bottom: 22px; }
}
@media (max-width: 360px) { .auth-container { padding: 20px 12px; } .auth-card { padding: 24px 18px; } .btn-google { padding-left: 10px; padding-right: 10px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; } }
