/* Invoice360 POS (g8): the sign-in and setup screens' layout.

   The console's sign-in: a plain light field, one white panel on a hairline,
   people as initials on hairline tiles, a PIN pad of white keys, and a solid
   orange "Sign in". Outfit throughout. Layout and shape only: every colour is
   a token from brand-g8.css, checked for contrast by scripts/brand_contrast.py. */

body.auth-g8 { background: var(--auth-field); }
.auth-g8 .topbar { background: var(--bar-bg); box-shadow: inset 0 -1px 0 var(--bar-line); }

/* ---- the heading ---- */
.auth-g8 .auth-main { padding-top: 32px; }
.auth-g8 .auth-head { gap: 16px; }
.auth-g8 .auth-mark {
  display: block; width: 48px; height: 48px; padding: 6px; border-radius: 4px;
  background: var(--mark-bg); box-shadow: inset 0 0 0 1px var(--auth-rule);
}
.auth-g8 .auth-head h1 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.01em; }

/* ---- the panel ---- */
.auth-g8 .auth-form {
  background: var(--auth-panel); border-radius: 6px; padding: 24px;
  box-shadow: inset 0 0 0 1px var(--auth-rule);
}
.auth-g8 .auth-counter legend { color: var(--text); }
.auth-g8 .auth-step { font-size: 1rem; font-weight: 600; }
.auth-g8 .auth-step-no { color: var(--accent-ink); }

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

/* ---- the PIN ---- */
.auth-g8 input.pin-input { border-radius: 4px; border: 1px solid var(--border-strong); background: var(--display-bg); color: var(--display-text); }
.auth-g8 input.pin-input:focus { border-color: var(--auth-focus); }
.auth-g8 .pinpad { gap: 8px; max-width: 360px; }
.auth-g8 .key { border-radius: 4px; }
.auth-g8 .key:hover { border-color: var(--border-strong); }
.auth-g8 .auth-submit { min-height: 56px; border-radius: 4px; font-size: 1.0625rem; font-weight: 600; }

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

@media (min-width: 900px) {
  .auth-g8 .auth-form { padding: 32px; }
  .auth-g8 .auth-grid { gap: 32px; }
  .auth-g8 .auth-pin { padding-left: 32px; border-left: 1px solid var(--auth-rule); }
}
@media (max-width: 479px) {
  .auth-g8 .auth-main { padding-top: 20px; }
  .auth-g8 .auth-form { padding: 16px; }
  .auth-g8 .auth-mark { width: 40px; height: 40px; padding: 5px; }
}

/* ---- the setup screens: the same white panel ---- */
.auth-g8 .auth-frame {
  background: var(--auth-panel); border-radius: 6px; padding: 28px;
  box-shadow: inset 0 0 0 1px var(--auth-rule);
}
.auth-g8 .auth-frame .card { box-shadow: none; padding: 0; background: transparent; }
.auth-g8 .auth-frame .sample-card { background: var(--auth-panel); padding: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--auth-rule); }
.auth-g8 .auth-lock { background: var(--primary-soft); color: var(--accent-ink); }
.auth-g8 .setup-locked h1 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); font-weight: 600; }
@media (max-width: 479px) { .auth-g8 .auth-frame { padding: 20px 16px; } }
