.password-reset-shell {
  background: #f7f9fc !important;
}

.password-reset-page {
  display: grid;
  min-height: calc(100vh - 7.5rem);
  place-items: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  background: #f7f9fc;
}

.password-reset-card.card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #dbe3ef;
  border-radius: .3rem 1.25rem .3rem 1.25rem;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 60px -50px rgba(15, 23, 42, .55);
  text-align: right;
}

.password-reset-card.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  border-radius: .3rem 1.25rem 0 0;
  background: #3448f5;
}

.password-reset-back,
.password-reset-secondary {
  align-self: flex-start;
  color: #475569;
  font-size: .9rem;
  font-weight: 700;
}

.password-reset-back { margin-bottom: 2rem; }
.password-reset-secondary { margin-top: 1rem; }
.password-reset-back:hover,
.password-reset-secondary:hover { color: #2563eb; }

.password-reset-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 1rem;
  color: #2563eb;
  background: #eff6ff;
  font-size: 1.5rem;
  font-weight: 900;
}

.password-reset-icon svg { width: 1.55rem; height: 1.55rem; }
.password-reset-icon.is-success { color: #047857; background: #ecfdf5; }
.password-reset-icon.is-danger { color: #b91c1c; background: #fef2f2; }

.password-reset-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
  color: #2434bd;
  font-size: .82rem;
  font-weight: 800;
}

.password-reset-eyebrow::before {
  width: 1.4rem;
  height: 2px;
  content: "";
  background: #c9ff55;
}

.password-reset-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.password-reset-card > p {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.8;
}

.password-reset-notice {
  display: grid;
  gap: .25rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: .2rem .7rem .2rem .7rem;
  color: #1e40af;
  background: #eff6ff;
  font-size: .92rem;
}

.password-reset-notice.is-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.password-reset-form {
  display: grid;
  gap: .75rem;
  margin-top: 1.75rem;
}

.password-reset-form label {
  margin-top: .35rem;
  color: #334155;
  font-size: .9rem;
  font-weight: 800;
}

.password-reset-form .input {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: .2rem .7rem .2rem .7rem;
  color: #0f172a;
  background: #fff;
  outline: 0;
}

.password-reset-form .input:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.password-reset-primary.btn.btn-primary {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.5rem;
  border: 0;
  border-radius: .9rem;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
}

.password-reset-form .password-reset-primary { margin-top: .75rem; }
.password-reset-help {
  color: #64748b;
  font-size: .76rem;
  line-height: 1.6;
}
.password-reset-primary:hover { background: #1d4ed8; }
.password-reset-primary:focus-visible,
.password-reset-back:focus-visible,
.password-reset-secondary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .password-reset-page { align-items: start; padding-top: 2rem; }
  .password-reset-card.card { border-radius: .3rem 1rem .3rem 1rem; }
}
