/* Shared app-style pages: login, portal, staff. Colours only via tokens.css.
   v1.1: light and calm – a very light warm-grey page so the white cards stand out. */
body.page-app { background: var(--bg-soft); }
/* Bottom room so the last buttons and notes clear the toast line. */
.app-main { padding: var(--space-5) 0 var(--space-7); }
.container--form { max-width: 480px; }
.container--portal { max-width: 640px; }
.container--staff { max-width: 640px; }
.app-title { font-size: var(--fs-2xl); }
.app-lead { color: var(--text-muted); }

/* Tabs */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  padding: var(--space-1);
  margin: var(--space-5) 0 var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.tab {
  min-height: var(--tap-min);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--cta-bg); color: var(--on-cta); }

.form-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.form-card .btn--block + .btn--block { margin-top: var(--space-3); }
.form-card .small-print { margin: var(--space-3) 0 0; }

/* Sign-up steps */
.steps {
  list-style: none;
  display: flex; gap: var(--space-2);
  margin: 0 0 var(--space-4); padding: 0;
  counter-reset: step;
}
.steps__item {
  flex: 1;
  display: flex; align-items: center; gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 4px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  counter-increment: step;
}
.steps__item::before { content: counter(step) "."; font-weight: 700; }
.steps__item[aria-current="step"] { border-top-color: var(--accent); color: var(--text); font-weight: 600; }
.steps__item.is-done { border-top-color: var(--success); }
.steps__item.is-done::before { content: "✓"; color: var(--success); }

.demo-otp {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}
.demo-otp__code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-xl);
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* v1.8: link to the Talent Search Test under the "not registered yet" message (accounts closed) */
.form-closed-link { margin: calc(-1 * var(--space-1)) 0 var(--space-3); }
