/* ── Login modal: beta member access flow ──────────────────────────────────
   Used by talent/elite/index.html. Three views: intro, magic-link request,
   sent confirmation. JS in talent/elite/js/login-modal.js. */

.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-modal.is-open {
  display: flex;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 1, 0.85);
  backdrop-filter: blur(8px);
}

.login-modal__panel {
  position: relative;
  z-index: 1;
  background: #0d0d0c;
  border: 1px solid rgba(241, 178, 64, 0.25);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
}

.login-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px;
  transition: color 0.2s;
}

.login-modal__close:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Beta badge */

.login-modal__beta {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.login-modal__beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(241, 178, 64, 0.12);
  border: 1px solid rgba(241, 178, 64, 0.3);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1b240;
}

.login-modal__beta-dot {
  width: 6px;
  height: 6px;
  background: #f1b240;
  border-radius: 50%;
}

/* Shared view header */

.login-modal__view {
  display: none;
}

.login-modal__view.is-active {
  display: block;
}

.login-modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-modal__icon {
  width: 48px;
  height: 48px;
  background: rgba(241, 178, 64, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #f1b240;
}

.login-modal__icon--success {
  background: rgba(26, 122, 82, 0.12);
  color: #1a7a52;
}

.login-modal__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.login-modal__subtitle {
  color: rgba(249, 250, 251, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
}

.login-modal__subtitle--small {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Form layout */

.login-modal__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-modal__stack--tight {
  gap: 0.7rem;
}

.login-modal__field-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-modal__input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f9fafb;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.login-modal__input:focus {
  border-color: rgba(241, 178, 64, 0.5);
}

.login-modal__error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.login-modal__error.is-visible {
  display: block;
}

.login-modal__error-text {
  color: #fca5a5;
  font-size: 0.78rem;
  margin: 0;
}

/* Buttons */

.login-modal__btn-primary {
  width: 100%;
  padding: 14px;
  background: #f1b240;
  color: #020301;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
  text-align: center;
  display: block;
}

.login-modal__btn-primary:hover:not(:disabled) {
  background: #f9d07a;
}

.login-modal__btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-modal__btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #f9fafb;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.login-modal__btn-secondary:hover {
  border-color: rgba(241, 178, 64, 0.5);
  color: #f1b240;
}

.login-modal__btn-text {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.login-modal__btn-text:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Footnote / beta caption */

.login-modal__footnote {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.55;
}

.login-modal__footnote a {
  color: #f1b240;
  text-decoration: none;
}

.login-modal__footnote a:hover {
  text-decoration: underline;
}
