/* The closed-beta sign-in popup (#2142, beta.js): a white card centred over
   the dimmed, blurred page. Matches the app's sign-in panel
   (apps/clive/next/web/src/signin/panel.css) so the hand-off to
   app.clive.careers reads as the same popup. */
html.bp-open, html.bp-open body { overflow: hidden; }
.bp-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(13, 12, 11, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(0.9);
  backdrop-filter: blur(14px) saturate(0.9);
  overflow-y: auto;
  animation: bp-fade 0.18s var(--ease-out, ease-out);
}
.bp-overlay[hidden] { display: none; }
.bp-overlay, .bp-overlay *, .bp-overlay *::before, .bp-overlay *::after { box-sizing: border-box; }
.bp-card {
  position: relative;
  width: 440px; max-width: 100%;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  display: flex; flex-direction: column; gap: 20px;
  font-family: "Source Serif 4", Georgia, serif;
  color: #201e1d;
  box-shadow: 0 0 0 1px rgba(13, 12, 11, 0.04), 0 2px 6px rgba(13, 12, 11, 0.03), 0 40px 120px -20px rgba(13, 12, 11, 0.35);
  animation: bp-rise 0.22s var(--ease-out, ease-out);
}
.bp-card p { margin: 0; }
.bp-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: transparent; color: #6e6a63; font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.bp-close:hover { background: #f7f6f5; color: #201e1d; }
.bp-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.bp-head img { height: 44px; width: auto; }
.bp-head h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #201e1d; }
.bp-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 999px; background: #fdf3cc; color: #5c4a00;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
}
.bp-text { font-size: 15px; line-height: 1.5; text-align: center; color: #3a3734; }
.bp-form { display: flex; flex-direction: column; gap: 20px; }
.bp-fieldwrap { display: flex; flex-direction: column; gap: 8px; }
.bp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #3a3734; }
.bp-field input {
  height: 46px; width: 100%; min-width: 0;
  border: 1px solid #dcd9d5; border-radius: 12px; padding: 0 14px;
  font: inherit; font-size: 16px; color: #201e1d; background: #fff; outline: none;
}
.bp-field input:focus { border-color: #0d0c0b; box-shadow: 0 0 0 3px rgba(13, 12, 11, 0.08); }
.bp-field input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1); }
.bp-error { font-size: 13px; line-height: 1.45; color: #b42318; }
.bp-error[hidden] { display: none; }
.bp-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; margin-top: 4px;
  border: 0; border-radius: 999px; background: #0d0c0b; color: #f3f2f2;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.bp-primary:hover { background: #2c2a27; }
.bp-primary .bp-arrow { color: #edbb00; }
.bp-foot { font-size: 14px; text-align: center; color: #6e6a63; }
.bp-overlay .bp-foot a { color: #201e1d; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bp-overlay .bp-foot a:hover { color: #201e1d; }
@media (max-width: 480px) {
  .bp-card { padding: 36px 24px 28px; border-radius: 18px; }
  .bp-head h2 { font-size: 24px; }
}
@keyframes bp-fade { from { opacity: 0; } }
@keyframes bp-rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .bp-overlay, .bp-card { animation: none; } }
