.password-reset-container {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.main-content:has(.password-reset-container) {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.password-reset-card {
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #cbd8eb;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  padding: 3rem 3.25rem;
  max-width: 620px;
  width: 100%;
}

.password-reset-card h2, .password-reset-card h3 {
  margin-bottom: 1.1rem;
  text-align: center;
  color: #172033;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.password-reset-card p {
  text-align: center;
  color: #475569;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  white-space: nowrap;
}

.password-reset-card form .mb-3 {
  margin-bottom: 1.2rem;
}

.password-reset-card label {
  font-weight: 700;
  color: #475569;
  font-size: 0.92rem;
}

.password-reset-card input {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #b9c6da;
  margin-top: 0.3rem;
  color: #172033;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.password-reset-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  outline: none;
}

.password-reset-card .btn {
  width: 100%;
  padding: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.password-reset-card .btn:hover {
  background: linear-gradient(90deg, #174ea6 0%, #1d4ed8 100%);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.26);
  transform: translateY(-1px);
}

.password-reset-card .text-danger {
  font-size: 0.95em;
  margin-top: 0.2rem;
}

.errorlist {
  color: #d32f2f;
  margin: 0.2em 0 0.5em 0;
  padding-left: 1.2em;
  list-style-type: disc;
  font-size: 0.97em;
}

@media (max-width: 640px) {
  .password-reset-container {
    padding: 1.25rem;
  }

  .password-reset-card {
    padding: 2.25rem 1.5rem;
  }

  .password-reset-card h2,
  .password-reset-card h3 {
    font-size: 1.65rem;
  }

  .password-reset-card p {
    white-space: normal;
  }
}
