/* Sign in / sign up */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-top { padding: 22px 28px; position: relative; z-index: 1; }
.auth-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px 48px; position: relative; z-index: 1; }
.auth-card {
  width: 100%; max-width: 440px; padding: 34px 32px 26px; border-radius: 28px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  box-shadow: 0 30px 70px rgba(40, 32, 18, 0.12), 0 2px 6px rgba(40, 32, 18, 0.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
@media (max-width: 480px) { .auth-card { padding: 28px 20px 22px; border-radius: 24px; } .auth-top { padding: 18px 20px; } }
.auth-card h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; color: var(--text); }
.auth-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.auth-sub { margin: 10px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.auth-sub strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px;
  border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--paper, #fff); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.auth-google:hover { background: var(--fill); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--glass-edge); }
.auth-card form .field { margin-bottom: 14px; }
.auth-card .btn-block { margin-top: 4px; }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-legal { margin: 18px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.auth-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.auth-link-btn { text-align: center; text-decoration: none; }
.auth-spinner { width: 28px; height: 28px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--accent); animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-roles { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.auth-roles legend { padding: 0; margin-bottom: 8px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-grid label { position: relative; cursor: pointer; }
.role-grid input { position: absolute; opacity: 0; pointer-events: none; }
.role-grid span {
  display: flex; align-items: center; min-height: 46px; padding: 10px 12px; border-radius: 14px; background: var(--fill);
  font-size: 14px; font-weight: 550; color: var(--text); line-height: 1.25; transition: background .15s, box-shadow .15s;
}
.role-grid label:hover span { background: var(--fill-strong); }
.role-grid input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.role-grid input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1.5px var(--accent); }


/* Split layout: sign-in on the left, talent graphic on the right (desktop) */
.auth-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 1; }
@media (min-width: 1040px) {
  .auth-split { grid-template-columns: minmax(440px, 0.9fr) minmax(0, 1.1fr); gap: 24px; padding: 0 24px 24px; }
  .auth-wrap { padding-bottom: 24px; }
}
.auth-visual { display: none; }
@media (min-width: 1040px) {
  .auth-visual {
    display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; border-radius: 32px;
    background:
      radial-gradient(60% 50% at 50% 42%, rgba(239, 143, 169, 0.22), transparent 70%),
      radial-gradient(40% 40% at 85% 10%, rgba(140, 29, 64, 0.35), transparent 70%),
      #17161a;
    color: #f4f1ea; min-height: 620px; padding: 32px 40px 28px;
  }
}

/* Phones and tablets: a drifting row of faces above the card */
.auth-faces { display: flex; justify-content: center; margin: 0 auto 18px; padding: 4px 0; overflow: hidden; width: 100%; max-width: 440px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.auth-faces img { width: 46px; height: 46px; border-radius: 50%; margin-left: -10px; flex: none; box-shadow: 0 0 0 3px var(--bg, #f3f2ee); animation: tv-bob 4.5s ease-in-out infinite; }
.auth-faces img:nth-child(2n) { animation-delay: -1.5s; }
.auth-faces img:nth-child(3n) { animation-delay: -3s; }
@media (min-width: 1040px) { .auth-faces { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .tv-spin, .tv-pin .tv-face, .auth-faces img, .tv-scan i { animation: none !important; }
  .tv-match { animation: none !important; opacity: 1; transform: none; }
}

.tv-face, .auth-faces img { object-fit: cover; }
.code-form { margin: 6px 0 4px; }
.code-form input { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
#resendNote { margin-top: 10px; color: var(--muted); }
#codeError { margin: 10px 0 14px; }
