@import '../variables.css';

.password-reset-page {
  flex: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 20px 64px;
  background: var(--bg-body);
}

.password-reset-page .auth-background,
.password-reset-page .auth-background-shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.password-reset-page .auth-background .hero-background {
  background-position: center 48%;
}

.password-reset-page .auth-background-shade {
  background:
    radial-gradient(ellipse at center, rgba(7, 9, 14, 0.18) 0%, rgba(7, 9, 14, 0.65) 70%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.5), rgba(7, 9, 14, 0.18) 50%, rgba(7, 9, 14, 0.72));
}

.password-reset-card {
  width: min(100%, 470px);
}

.password-reset-card .auth-heading {
  margin-bottom: 24px;
}

.password-reset-card .auth-heading h1 span {
  color: var(--color-primary);
}

.password-reset-form[hidden] {
  display: none;
}

.password-reset-form .auth-submit {
  margin-top: 3px;
}

.password-reset-resend {
  justify-self: center;
  margin-top: -5px;
  padding: 6px 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
}

.password-reset-resend:hover,
.password-reset-resend:focus-visible {
  color: var(--color-primary-light);
}

.password-reset-card .auth-secure-note {
  margin-top: 22px;
}

@media (max-width: 520px) {
  .password-reset-page {
    padding: 28px 14px 40px;
  }

  .password-reset-card {
    padding: 28px 22px 24px;
  }
}
