/* Shared AURORA customer and staff sign-in design. */
:root { font-family: Inter, "Helvetica Neue", Arial, sans-serif; color-scheme: light; --bg: #f5f6fb; --surface: #ffffff; --surface-soft: #f7f8fc; --text: #252a3b; --secondary: #59657d; --muted: #657087; --line: #e8ecf3; --line-strong: #d8deea; --accent: #715cb9; --accent-hover: #614ca6; --accent-soft: #f0ecfa; --on-accent: #ffffff; --focus: #9178ce; --negative: #b15a68; --negative-bg: #fbf0f2; --positive: #357d68; --positive-bg: #edf7f2; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #11131c; --surface: #1c2130; --surface-soft: #222838; --text: #edf0f7; --secondary: #adb7ca; --muted: #939fb7; --line: #ffffff0a; --line-strong: #3c455b; --accent: #c1afea; --accent-hover: #d0c1f3; --accent-soft: #afa0da14; --on-accent: #2b2240; --focus: #c5b0f0; --negative: #d5a0aa; --negative-bg: #d191a015; --positive: #9ac8b7; --positive-bg: #8ec4ad13; }
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body, button, input, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.3; font-weight: 600; }
.admin-auth-page { min-height: 100dvh; display: grid; align-items: center; justify-items: center; padding: 88px 24px; background-image: radial-gradient(ellipse at 50% 24%, var(--accent-soft), transparent 65%); }
.admin-auth-topbar { position: absolute; top: 22px; right: 28px; display: flex; align-items: center; height: 38px; }
.admin-auth-layout { width: 100%; max-width: 416px; }
.admin-auth-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 48px #1c244709, 0 2px 8px #1c244704; }
:root[data-theme="dark"] .admin-auth-card { box-shadow: 0 18px 60px #00000024, 0 2px 10px #00000012; }
.admin-auth-logo { display: flex; justify-content: center; margin-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 33px; height: 35px; flex-shrink: 0; }
.brand-name { display: block; font-size: 21px; font-weight: 600; line-height: 1.1; letter-spacing: 3px; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; letter-spacing: 2px; }
.auth-step { width: 100%; }
.admin-auth-card h1 { margin-bottom: 24px; font-size: 24px; letter-spacing: -.55px; text-align: center; }
.auth-description { margin: -14px 0 22px; color: var(--secondary); font-size: 14px; line-height: 1.6; text-align: center; }
.admin-auth-card form { display: grid; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span:not(.field-help):not(.auth-field-error) { color: var(--secondary); font-size: 13px; font-weight: 500; line-height: 1.4; }
.field input { width: 100%; height: 42px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--surface); font-size: 15px; line-height: 22px; transition: border-color 160ms ease, background-color 160ms ease; }
.field input:hover { border-color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--negative); }
.auth-field-error { color: var(--negative); font-size: 12px; line-height: 1.5; }
.field input::placeholder { color: var(--muted); opacity: .85; }
.field-help, .auth-help { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); min-height: 32px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--secondary); font-size: 12px; line-height: 1.4; }
.password-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.button:hover { background: var(--surface-soft); text-decoration: none; }
.button-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-quiet { background: transparent; border-color: transparent; color: var(--accent); }
.button-quiet:hover { background: var(--accent-soft); }
.auth-submit, .admin-auth-card form > .button, .auth-step > .button { width: 100%; margin-top: 3px; }
.auth-message { padding: 10px 12px; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); border-radius: 9px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-message.error, .auth-message[data-tone="error"], .auth-message[data-kind="error"] { background: var(--negative-bg); color: var(--negative); }
.auth-message.success, .auth-message[data-tone="success"], .auth-message[data-kind="success"] { background: var(--positive-bg); color: var(--positive); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.loading-state { color: var(--secondary); font-size: 14px; line-height: 1.6; text-align: center; }
.loading-state h1 { margin-bottom: 12px; }
.loading-state p { margin-bottom: 22px; }
@media (max-width: 600px) {
  .admin-auth-page { padding: 80px 20px; }
  .admin-auth-topbar { top: 16px; right: 16px; }
  .admin-auth-card { padding: 28px; border-radius: 18px; }
  .field input { font-size: 16px; }
}
@media (max-width: 360px) {
  .admin-auth-page { padding-left: 16px; padding-right: 16px; }
  .admin-auth-card { padding: 25px 22px; }
  .admin-auth-card h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
