/* ===== LOGIN MODAL =====
   Only the parts that differ from the sign-up dialog. The shell, fields,
   reveals, toast, country picker and bottom-sheet behaviour all come from
   css/auth.css, which must load first. */

.login-modal__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--color-hero-gold, #e0ae4f);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* No artwork overlaps this dialog, so the top padding only has to clear the
   close button rather than the sign-up device shot. */
.login-modal .auth-modal__card {
  padding-block-start: 3.4rem;
}

.login-modal .auth-modal__title {
  font-size: clamp(1.35rem, 5.6vw, 1.65rem);
}

.login-modal .auth-modal__lede {
  margin-block-end: 1.15rem;
}

/* ---- Mobile / Email switch ---- */

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.login-tabs__tab {
  min-height: 3.1rem;
  padding: 0 0.75rem;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--auth-field);
  border: var(--rule-hair, 1px) solid var(--auth-hairline);
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color var(--dur-micro, 120ms) ease, color var(--dur-micro, 120ms) ease;
}

.login-tabs__tab[aria-selected="true"] {
  color: #fff;
  background: var(--auth-accent);
  border-color: transparent;
}

/* ---- Forgot password ---- */

.login-modal__forgot {
  margin: 1.1rem 0 0;
  text-align: center;
  text-transform: none;
}

.login-modal__forgot button,
.auth-modal__alt button {
  padding: 0;
  color: var(--color-hero-gold, #e0ae4f);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  background: none;
  border: 0;
  cursor: pointer;
}

.auth-modal__alt button {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.login-view[hidden],
.auth-modal__alt[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .login-tabs__tab:not([aria-selected="true"]):hover {
    background: #17171a;
  }

  .login-modal__forgot button:hover,
  .auth-modal__alt button:hover {
    text-decoration: underline;
  }
}
