/* ─────────────────────────────────────────────────────────────────────────────
   People Portal sign-in pages (login · verify · register · choose-contract · no-contract · alumni ·
   client verify / choose-client). Scoped to body.pp-auth, loaded right after custom.css.

   This is a freshening layer, NOT a re-brand: it keeps the People Portal identity (Bricolage Grotesque +
   Instrument Sans, indigo, the violet→indigo gradient button, the lilac glow) and only rounds, enlarges and
   spaces things the way the signed-in portals now do. Everything colour-related reads the --sim-* tokens, so
   the white-label (?brand=<entity>) login — which re-points those tokens in brandLoginStyles() after this file —
   keeps working with its own colours, logo and font.
   ───────────────────────────────────────────────────────────────────────────── */

body.pp-auth { -webkit-font-smoothing: antialiased; }

/* Backdrop: the existing lilac glow plus two soft brand shapes */
body.pp-auth .sim-auth-page { position: relative; overflow: hidden; padding: 24px 16px; }
body.pp-auth .sim-auth-page::before,
body.pp-auth .sim-auth-page::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
body.pp-auth .sim-auth-page::before { width: 560px; height: 560px; right: -200px; top: -180px; border-radius: 50%; background: rgba(var(--sim-primary-rgb), .07); }
body.pp-auth .sim-auth-page::after  { width: 340px; height: 340px; left: -120px; bottom: -130px; border-radius: 100px; transform: rotate(18deg); background: rgba(var(--sim-primary-rgb), .06); }
body.pp-auth .sim-auth-page > div { position: relative; z-index: 1; max-width: 460px !important; }
body.pp-auth .sim-auth-wrap { max-width: 460px; }
body.pp-auth .sim-auth-wrap--wide { max-width: 560px; }

/* Brand mark */
body.pp-auth .sim-auth-brand { margin-bottom: 28px; }
body.pp-auth .sim-auth-brand img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }

/* Card */
body.pp-auth .sim-auth-card { border-radius: 28px; border: 1px solid var(--sim-border); background: var(--sim-surface); box-shadow: 0 28px 60px -28px rgba(var(--sim-primary-rgb), .28), 0 2px 6px rgba(var(--sim-primary-rgb), .04); }
body.pp-auth .sim-auth-card .card-body { padding: 36px 36px 32px; }

/* Type */
body.pp-auth .sim-auth-heading { font-size: clamp(1.75rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
body.pp-auth .sim-auth-subtitle { font-size: 15px; line-height: 1.5; }
body.pp-auth .sim-label { font-size: 13px; font-weight: 700; }
body.pp-auth .sim-auth-footer { font-size: 14px; }

/* Fields + primary action — chunkier; 16px text so iOS doesn't zoom on focus */
body.pp-auth .sim-input,
body.pp-auth .form-control,
body.pp-auth .form-select { min-height: 52px; border-radius: 14px; font-size: 16px; box-shadow: none; }
body.pp-auth .sim-input:focus,
body.pp-auth .form-control:focus,
body.pp-auth .form-select:focus { border-color: var(--sim-primary); box-shadow: 0 0 0 4px rgba(var(--sim-primary-rgb), .16); outline: none; }
body.pp-auth .btn-primary { display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800; letter-spacing: 0; }
body.pp-auth .btn-link { font-weight: 700; }

/* Alerts */
body.pp-auth .alert { border: 0; border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 14px; }
body.pp-auth .alert-danger { background: #FFE4DA; color: #9A3412; }

/* Talent / Client segmented toggle */
body.pp-auth .login-seg { padding: 5px; border-radius: 18px; margin-bottom: 28px; }
body.pp-auth .login-seg-ind { top: 5px; left: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 13px; box-shadow: 0 2px 8px rgba(var(--sim-primary-rgb), .16); }
body.pp-auth .login-seg-btn { padding: 12px 8px; border-radius: 13px; font-size: 15px; font-weight: 800; }

/* Icon chip: rounded square rather than a circle */
body.pp-auth .sim-auth-icon { width: 64px; height: 64px; border-radius: 20px; margin-left: auto; margin-right: auto; margin-bottom: 20px; }

/* One-time code boxes */
body.pp-auth .otp-group { gap: 10px; }
body.pp-auth .otp-digit { width: 56px; height: 64px; border-radius: 16px; font-size: 1.7rem; border-width: 2px; }
body.pp-auth .otp-digit:focus { box-shadow: 0 0 0 4px rgba(var(--sim-primary-rgb), .16); }

/* Reassurance line under the login card */
.sim-auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; font-size: 13px; font-weight: 600; color: var(--sim-ink-muted); text-align: center; }
.sim-auth-secure svg { flex: none; color: var(--sim-primary-text); }

/* choose-contract / choose-client tiles */
body.pp-auth .contract-tile { border-width: 2px; border-radius: 20px; padding: 16px 18px; }
body.pp-auth .contract-tile:hover { box-shadow: 0 0 0 4px rgba(var(--sim-primary-rgb), .14); transform: translateY(-2px); }
body.pp-auth .contract-tile-logo-placeholder { border-radius: 14px; }

@media (max-width: 575.98px) {
  body.pp-auth .sim-auth-card .card-body { padding: 26px 20px 24px; }
  body.pp-auth .sim-auth-brand { margin-bottom: 20px; }
  body.pp-auth .otp-digit { width: 46px; height: 56px; border-radius: 14px; font-size: 1.45rem; }
  body.pp-auth .otp-group { gap: 7px; }
}
@media (max-width: 380px) {
  body.pp-auth .otp-digit { width: 40px; height: 52px; font-size: 1.3rem; }
  body.pp-auth .otp-group { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  body.pp-auth .login-seg-ind, body.pp-auth .contract-tile { transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Admin console sign-in (admin/index.php sign-in + emailed code, admin/set-password.php).
   Keeps the admin identity — Inter, indigo, the "Admin Portal" label — with the same rounding, sizing and
   backdrop as the sign-in pages above. Scoped to .sim-auth-page inside body.sim-admin, so nothing in the
   admin console itself is touched.
   ───────────────────────────────────────────────────────────────────────────── */
body.sim-admin .sim-auth-page {
  position: relative; overflow: hidden; padding: 24px 16px;
  background:
    radial-gradient(1100px 620px at 50% -14%, #efe9ff 0%, rgba(239, 233, 255, 0) 60%),
    linear-gradient(180deg, #f7f6fb 0%, #f5f2fe 100%);
}
body.sim-admin .sim-auth-page::before,
body.sim-admin .sim-auth-page::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
body.sim-admin .sim-auth-page::before { width: 560px; height: 560px; right: -200px; top: -180px; border-radius: 50%; background: rgba(var(--sim-primary-rgb), .07); }
body.sim-admin .sim-auth-page::after  { width: 340px; height: 340px; left: -120px; bottom: -130px; border-radius: 100px; transform: rotate(18deg); background: rgba(var(--sim-primary-rgb), .06); }
body.sim-admin .sim-auth-wrap { position: relative; z-index: 1; max-width: 440px; }
body.sim-admin .sim-auth-logo-sm { height: 40px; }

body.sim-admin .sim-auth-card { border-radius: 28px; border: 1px solid var(--sim-border); box-shadow: 0 28px 60px -28px rgba(var(--sim-primary-rgb), .28), 0 2px 6px rgba(var(--sim-primary-rgb), .04); }
body.sim-admin .sim-auth-card .card-body { padding: 36px 36px 32px; }

/* "Admin Portal" label as a small pill, so it's unmistakable which door this is */
body.sim-admin .sim-auth-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--sim-primary-light); color: var(--sim-primary-text);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
body.sim-admin .sim-auth-heading { font-size: clamp(1.75rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
body.sim-admin .sim-auth-subtitle { font-size: 15px; line-height: 1.5; }

body.sim-admin .sim-auth-card .sim-input,
body.sim-admin .sim-auth-card .form-control { min-height: 52px; border-radius: 14px; font-size: 16px; box-shadow: none; }
body.sim-admin .sim-auth-card .sim-input:focus,
body.sim-admin .sim-auth-card .form-control:focus { border-color: var(--sim-primary); box-shadow: 0 0 0 4px rgba(var(--sim-primary-rgb), .16); outline: none; }
body.sim-admin .sim-auth-card .btn-primary { display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800; }
body.sim-admin .sim-auth-card .alert { border: 0; border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 14px; }
body.sim-admin .sim-auth-card .alert-danger  { background: #FFE4DA; color: #9A3412; }
body.sim-admin .sim-auth-card .alert-success { background: #DDF5E7; color: #135C34; }
body.sim-admin .sim-auth-card .form-check-input { width: 1.2em; height: 1.2em; border-radius: 6px; }
body.sim-admin .sim-auth-card .form-check-input:checked { background-color: var(--sim-primary); border-color: var(--sim-primary); }
/* the emailed 6-digit code field */
body.sim-admin #code { font-size: 1.6rem !important; font-weight: 800; min-height: 64px; border-radius: 16px; }

@media (max-width: 575.98px) {
  body.sim-admin .sim-auth-card .card-body { padding: 26px 20px 24px; }
}
