/* ============================================================
   UPS Store 4507 — Customer PC Web App
   All styles, no framework. Target: 1920x1080, mouse + OSK.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* ── Brand token block — EDIT HERE to re-theme (white-label surface). ── */
  --bg:              #EAF0F2;   /* page — soft cool off-white, never pure white */
  --surface:         #FAFCFD;   /* cards — near-white, gentle */
  --surface-2:       #E4ECEF;   /* insets / card headers / disabled fills */
  --surface-border:  #D3DEE3;   /* hairline borders */
  --accent:          #0089A8;   /* buttons / interactive — deepened cyan */
  --accent-hover:    #00A4C9;   /* logo bright cyan — hover only */
  --accent-bright:   #00A4C9;   /* logo tie-in — thin header rule */
  --accent-dim:      rgba(0, 137, 168, 0.10);
  --accent-dim2:     rgba(0, 137, 168, 0.20);
  --on-accent:       #FFFFFF;   /* text/icon on an --accent fill */
  --text:            #16303A;   /* dark slate — from logo outlines */
  --text-secondary:  #4A626C;
  --text-dim:        #7C919B;
  --gold:            #FFB500;   /* success checks / added-time accents only */
  --danger:          #C0392B;
  --danger-bg:       rgba(192, 57, 43, 0.10);
  --success:         #1B9E8A;
  --success-bg:      rgba(27, 158, 138, 0.10);
  --warn:            #B8730A;   /* readable amber on light */
  --warn-border:     #E0940A;
  --scrim:           rgba(22, 48, 58, 0.82);  /* slate dim behind modals — mirrors agent theme.SCRIM */
  --timer-bar-h:     40px;
  --radius:          10px;
  --radius-sm:       6px;
  --shadow:          0 4px 20px rgba(20, 48, 58, 0.12);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Timer bar placeholder ──────────────────────────────────── */
.timer-bar-stub {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--timer-bar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  user-select: none;
}

/* ── Page wrapper — sits below the timer bar ────────────────── */
.page-wrapper {
  min-height: 100vh;
  padding-top: var(--timer-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

/* ── Centered content panel ─────────────────────────────────── */
.center-panel {
  width: 100%;
  max-width: 660px;
  padding: 40px 24px;
}

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  text-align: center;
  margin-bottom: 36px;
}

.store-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ── Card payment panel ─────────────────────────────────────── */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.card-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-panel-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.rate-badge {
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

/* ── Square card container ──────────────────────────────────── */
/* The Web Payments SDK mounts its secure iframe here. We frame the container;
   the iframe's own field colors come from SQUARE_CARD_STYLE in app.js. */
.card-container {
  margin-bottom: 20px;
  min-height: 56px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim2) inset;
}

/* Fallback notice when the SDK can't load / Square isn't configured. */
.card-unavailable {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 15px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* ── Rate detail blurb ──────────────────────────────────────── */
.rate-detail {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 18px 0 24px;
  line-height: 1.6;
}

.rate-detail p + p {
  margin-top: 4px;
}

.rate-detail strong {
  color: var(--text);
}

/* ── Error banner ───────────────────────────────────────────── */
.error-banner {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 700;
  padding: 18px 36px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  letter-spacing: 0.02em;
  min-height: 60px;
  box-shadow: 0 2px 16px rgba(0, 137, 168, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px rgba(0, 137, 168, 0.40);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--surface-border);
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 600;
  padding: 18px 36px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 60px;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-full {
  width: 100%;
  display: block;
}

.btn-large {
  font-size: 20px;
  padding: 20px 40px;
  min-height: 64px;
  min-width: 220px;
}

/* Inline link styled like secondary button (for session-active-view) */
a.btn-secondary.btn-inline-link {
  display: inline-block;
  text-decoration: none;
  margin-top: 28px;
}

/* Compact button modifier — for dense admin controls (Save / Void / toggle).
   Defined after the base buttons so it wins on shared props (equal specificity). */
.btn-compact {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 0;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  box-shadow: none;
}
.btn-secondary.btn-compact { border-width: 1px; }

/* ── Session active panel ───────────────────────────────────── */
.session-active-panel {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-dim2);
  text-align: center;
}

.session-active-icon {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.session-active-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.session-active-body {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.session-active-body strong {
  color: var(--text);
}

.session-started-at {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 20px;
}

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
.checkout-overlay {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 36px;
}

.checkout-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.checkout-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ── Summary table ──────────────────────────────────────────── */
.summary-table {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.summary-section {
  padding: 0;
}

.summary-section + .summary-section {
  border-top: 1px solid var(--surface-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 28px;
  font-size: 19px;
  gap: 16px;
}

.summary-row + .summary-row {
  border-top: 1px solid var(--surface-border);
}

.summary-row--header {
  background: var(--surface-2);
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.summary-row--sub {
  padding-top: 8px;
  padding-bottom: 16px;
}

.summary-label {
  color: var(--text);
  flex: 1;
}

.summary-label--detail {
  font-size: 15px;
  color: var(--text-secondary);
}

.summary-label--total {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.summary-value {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.summary-value--total {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.summary-page-count {
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 10px;
}

.summary-section--prints .summary-row:not(.summary-row--header) {
  font-size: 18px;
}

.summary-section--total {
  background: rgba(0, 137, 168, 0.04);
}

/* ── Checkout action buttons ────────────────────────────────── */
.checkout-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.checkout-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 20px;
}

/* The HTML `hidden` attribute must win over any explicit `display:` rule. */
[hidden] { display: none !important; }

/* ── Full-screen state panels (processing, thank-you) ───────── */
.fullscreen-state {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  text-align: center;
  padding: 40px;
}

.fullscreen-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.fullscreen-message {
  font-size: 26px;
  color: var(--text-secondary);
  max-width: 520px;
}

.fullscreen-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Thank-you check mark */
.thank-you-check {
  font-size: 80px;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--surface-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 17px;
  padding: 16px 28px;
  z-index: 900;
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Extend-confirm overlay (10-second reauth prompt) ───────── */
.extend-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;            /* above timer bar (1000) and toast (900) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--scrim);
  backdrop-filter: blur(3px);
  animation: extend-fade 0.18s ease;
}

@keyframes extend-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.extend-modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-dim2);
  padding: 36px 36px 32px;
  text-align: center;
}

.extend-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.extend-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.extend-body strong {
  color: var(--accent);
  font-weight: 700;
}

.extend-countdown {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.extend-count {
  display: inline-block;
  min-width: 1.6em;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.extend-progress {
  height: 6px;
  width: 100%;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.extend-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  /* width is driven by JS each tick; ease the shrink so it reads as a countdown */
  transition: width 0.12s linear;
}

.extend-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.extend-actions .btn-large {
  flex: 1;
  min-width: 180px;
}

/* ── Tier selector (Phase 3) ────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.tier-card {
  position: relative;
  display: block;
  padding: 18px 16px;
  background: var(--surface-2);
  border: 2px solid var(--surface-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
  user-select: none;
}

.tier-card:hover {
  border-color: var(--accent);
}

.tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-card:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim2) inset;
}

.tier-card-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tier-card-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.tier-card:has(input[type="radio"]:checked) .tier-card-price {
  color: var(--accent);
}

.tier-card-meta {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.tier-footnote {
  font-size: 13px;
  color: var(--text-dim);
  margin: 4px 0 8px;
  line-height: 1.5;
}

/* ── Admin dashboard ────────────────────────────────────────── */
/* Admin content is long/tabular — top-align it instead of the vertical
   centering .page-wrapper gives the short customer cards. */
.page-wrapper:has(.admin-wrap) {
  align-items: flex-start;
}

.admin-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

/* Base form-control styling — SCOPED to admin so the customer pages (Square
   card iframe, hidden tier radios) are never touched. Fixes the site-wide
   "raw browser default" look on every admin input/select. */
.admin-wrap input:not([type="hidden"]),
.admin-wrap select,
.admin-wrap textarea {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-wrap input:not([type="hidden"]):focus,
.admin-wrap select:focus,
.admin-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.admin-wrap input::placeholder { color: var(--text-dim); }

/* Header bar: title left, nav/back-link right */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--surface-border);
}

.admin-header h1 {
  font-size: 26px;
  font-weight: 700;
}

.admin-userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.admin-userbar > span { font-weight: 600; }

/* Nav / back links styled as quiet pill buttons */
.admin-nav-link {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}

.admin-nav-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Section eyebrow heading */
.admin-h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 28px 0 14px;
}

/* Generic content card */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 8px;
}

/* Active session — a card with an accent edge to draw the eye */
.admin-active {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 8px;
}

.admin-active--empty {
  border-color: var(--surface-border);
  border-left-color: var(--surface-border);
  color: var(--text-dim);
  box-shadow: none;
}

.admin-active h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
}

.admin-kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.admin-kv dt {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  align-self: center;
}

.admin-kv dd {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Field grid: uppercase micro-label above a full-width input */
.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px 16px;
  margin-bottom: 18px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-field > span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Tables (recent sessions, users, audit) — self-contained cards */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}

.admin-table th {
  background: rgba(22, 48, 58, 0.05);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.admin-table tbody tr:hover td { background: var(--accent-dim); }
.admin-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.status-active           { background: rgba(27,158,138,0.15); color: var(--success); }
.status-preauthorizing   { background: rgba(245,158,11,0.15); color: var(--warn); }
.status-capturing        { background: rgba(0,137,168,0.15);  color: var(--accent); }
.status-completed        { background: rgba(74,98,108,0.12);  color: var(--text-secondary); }
.status-cancelled        { background: rgba(192,57,43,0.10);  color: var(--danger); }
.status-capture_failed   { background: rgba(192,57,43,0.14);  color: var(--danger); font-weight: 800; }

.admin-void-btn { cursor: pointer; }

/* Pricing tier editor — a grid of editable tier cards */
.admin-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.admin-tier-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.admin-tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tier-code {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.admin-tier-card .admin-field-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tier-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-tier-actions .btn-primary,
.admin-tier-actions .btn-secondary { flex: 1; }

.admin-tier-toggle { margin-top: 10px; }

/* State badge (enabled / disabled) */
.admin-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
}
.admin-badge--on  { color: var(--success); background: rgba(27,158,138,0.15); }
.admin-badge--off { color: var(--text-dim); background: rgba(124,145,155,0.18); }

/* Login — a centered card */
.admin-login {
  max-width: 380px;
  margin: 64px auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}

.admin-login h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
}

.admin-login form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.admin-login button { margin-top: 8px; }

.admin-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Inline table-cell inputs (e.g. reset-password) shouldn't stretch full width */
.admin-actions input { width: auto; min-width: 130px; }

.inline { display: inline; }
