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

   The deck's space-indigo field, kept plain: no floor grid, no orbit, no
   drifting bloom. A thin status strip ("Authorised staff only"), white
   headings in Manrope, one solid indigo panel on a hairline, people as squared
   initials on hairline rows, squared keys and a violet "Sign in". Setup is a
   white panel on the same field. Layout and shape only: every colour is a
   token from brand-invotech.css, checked by scripts/brand_contrast.py. */

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

/* ---- the status strip and the bar ---- */
.auth-invotech .auth-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px;
  margin: 0; padding: 6px var(--gutter);
  background: var(--strip-bg); color: var(--strip-text);
  box-shadow: inset 0 -1px 0 var(--auth-rule);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
}
.auth-invotech .auth-strip-rule { text-transform: uppercase; letter-spacing: 0.08em; }
.auth-invotech .topbar { background: transparent; box-shadow: inset 0 -1px 0 var(--auth-rule); }

/* ---- the heading ---- */
.auth-invotech .auth-main { padding-top: 32px; }
.auth-invotech .auth-shell { gap: 24px; }
.auth-invotech .auth-head { gap: 16px; }
.auth-invotech .auth-mark { display: block; width: 48px; height: 48px; }
.auth-invotech .auth-head h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--auth-field-text);
}

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

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

/* ---- the PIN: a dark readout and squared keys ---- */
.auth-invotech input.pin-input {
  border-radius: 4px; border: 1px solid var(--key-edge);
  background: var(--display-bg); color: var(--auth-panel-text); letter-spacing: 0.5em;
}
.auth-invotech .pinpad { gap: 8px; max-width: 300px; margin-top: 16px; }
.auth-invotech .key { width: 100%; min-height: 56px; border-radius: 4px; font-size: 1.375rem; }
.auth-invotech .key-fn { font-size: 0.8125rem; }
.auth-invotech .auth-actions { margin-top: 20px; }
.auth-invotech .auth-submit { min-height: 56px; border-radius: 4px; font-size: 1.0625rem; font-weight: 600; }

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

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

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