/* NexInvoice POS: the sign-in and setup screens' layout.

   Uzaro's dark navy field, kept plain: no grid, no traces, no glow. White
   headings, one solid panel on a hairline, people as initials on hairline
   rows, round keys, and a Sky Cyan "Sign in" with deep-navy words. Setup is a
   white card on the same field. Layout and shape only: every colour is a
   token from brand-uzaro.css, checked for contrast by scripts/brand_contrast.py. */

body.auth-uzaro { background: var(--auth-field); }

/* ---- the bar: on the field, Uzaro's full lock-up ---- */
.auth-uzaro .topbar { background: transparent; box-shadow: inset 0 -1px 0 var(--auth-rule); min-height: 64px; }
.auth-uzaro .brand::after { display: none; }
.auth-uzaro .brand-mark { content: var(--mark-reverse-image); height: 36px; }

/* ---- the heading ---- */
.auth-uzaro .auth-main { padding-top: 32px; }
.auth-uzaro .auth-shell { gap: 24px; }
.auth-uzaro .auth-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }

/* ---- the panel: solid, on a hairline ---- */
.auth-uzaro .auth-form {
  padding: 28px; border-radius: 12px;
  background: var(--auth-panel); color: var(--auth-panel-text);
  box-shadow: inset 0 0 0 1px var(--auth-glass-line);
}
.auth-uzaro .auth-form :focus-visible,
.auth-uzaro .person:has(input:focus-visible) { outline-color: var(--auth-focus); }
.auth-uzaro .auth-counter legend { color: var(--auth-panel-text); }
.auth-uzaro .auth-counter .choice {
  border: 0; border-radius: 6px; background: var(--key-bg); color: var(--auth-panel-text);
  box-shadow: inset 0 0 0 1px var(--key-edge);
}
.auth-uzaro .auth-counter .choice:has(input:checked) { background: var(--pick-bg); box-shadow: inset 0 0 0 2px var(--pick-mark); }
.auth-uzaro .auth-counter .choice input { accent-color: var(--cta); }
.auth-uzaro .auth-form .auth-step { color: var(--auth-panel-text); font-size: 1rem; font-weight: 600; }
.auth-uzaro .auth-step-no { color: var(--display-text); }

/* ---- people: initials on hairline rows ---- */
.auth-uzaro .person-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.auth-uzaro .person {
  gap: 12px; min-height: 60px; padding: 8px 12px 8px 10px; border-radius: 8px;
  background: var(--key-bg); box-shadow: inset 0 0 0 1px var(--key-edge);
}
.auth-uzaro .person:hover { background: var(--key-hover); }
.auth-uzaro .person-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--display-bg); color: var(--display-text);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
}
.auth-uzaro .person-name { font-weight: 600; color: var(--auth-panel-text); }
.auth-uzaro .person-role { color: var(--auth-panel-muted); }
.auth-uzaro .person-tick {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--key-edge); color: transparent;
}
.auth-uzaro .person-tick svg { width: 14px; height: 14px; }
.auth-uzaro .person:has(input:checked) { background: var(--pick-bg); box-shadow: inset 0 0 0 2px var(--pick-mark); }
.auth-uzaro .person:has(input:checked) .person-name { color: var(--pick-text); }
.auth-uzaro .person:has(input:checked) .person-tick { background: var(--pick-mark); color: var(--submit-text); box-shadow: none; }

/* ---- the PIN: a dark display and round keys ---- */
.auth-uzaro input.pin-input { border-radius: 8px; border: 1px solid var(--key-edge); letter-spacing: 0.5em; }
.auth-uzaro .pinpad { gap: 10px 16px; max-width: 300px; margin-top: 16px; }
.auth-uzaro .key {
  justify-self: center; width: 100%; max-width: 68px; aspect-ratio: 1; min-height: 60px; border-radius: 50%;
  border: 1px solid var(--key-edge); font-size: 1.5rem; font-weight: 400;
}
.auth-uzaro .key-fn { border-color: transparent; background: transparent; font-size: 0.875rem; font-weight: 500; }
.auth-uzaro .auth-actions { margin-top: 20px; }
.auth-uzaro .auth-submit { min-height: 56px; border-radius: 8px; font-size: 1.0625rem; font-weight: 600; }

.auth-uzaro .auth-note { color: var(--auth-field-muted); }

@media (min-width: 900px) {
  .auth-uzaro .auth-grid { gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
  .auth-uzaro .auth-pin { padding-left: 40px; box-shadow: -1px 0 0 var(--auth-rule); }
  .auth-uzaro .auth-form { padding: 32px 36px; }
}
@media (max-width: 479px) {
  .auth-uzaro .topbar { min-height: 56px; }
  .auth-uzaro .brand-mark { height: 30px; }
  .auth-uzaro .auth-main { padding-top: 20px; }
  .auth-uzaro .auth-form { padding: 18px 16px 20px; }
  .auth-uzaro .person-list { grid-template-columns: 1fr; }
  .auth-uzaro .pinpad { gap: 10px 14px; }
}

/* ---- the setup screens: a white card on the field ---- */
.auth-uzaro .auth-frame {
  padding: 32px; border-radius: 12px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 0 0 1px var(--auth-glass-line);
}
.auth-uzaro .auth-frame > h1 { font-weight: 600; }
.auth-uzaro .auth-frame .card { box-shadow: none; padding: 0; background: transparent; }
.auth-uzaro .auth-frame .sample-card { background: var(--surface-2); padding: 18px; border-radius: 8px; }
.auth-uzaro .auth-lock { background: var(--primary-soft); color: var(--primary); }
.auth-uzaro .setup-locked h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
@media (max-width: 479px) { .auth-uzaro .auth-frame { padding: 24px 18px; } }
