.password-reset-page {
  --primary-color: rgb(84, 56, 158);
  --text-color: rgb(15, 23, 34);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f8fc;
  color: var(--text-color);
  font-family: Lato, sans-serif;
  text-align: center;
}

.password-reset-page * {
  box-sizing: border-box;
}

.password-reset-page .reset-header {
  width: 100%;
  padding: 8px;
  background: var(--primary-color);
  color: white;
}

.password-reset-page .reset-header p {
  margin: 0;
  font-size: xx-large;
  font-weight: bold;
}

.password-reset-page .reset-card {
  max-width: 400px;
  width: calc(100% - 32px);
  margin: 48px 16px 32px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(45, 55, 72, 0.08);
  overflow-wrap: anywhere;
}

.password-reset-page h1 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.password-reset-page p {
  margin: 0;
  line-height: 1.5;
}

.password-reset-page form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-reset-page .reset-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.password-reset-page label {
  font-weight: 600;
}

.password-reset-page input:not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font: inherit;
  color: rgb(45, 55, 72);
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.password-reset-page input:hover {
  border-color: #718096;
}

.password-reset-page input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(84, 56, 158, 0.16);
}

.password-reset-page input[aria-invalid="true"] {
  border-color: #e53e3e;
}

.password-reset-page .reset-button {
  display: block;
  padding: 2px 16px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  background: var(--primary-color);
  color: white;
  font: inherit;
  font-weight: 900;
  line-height: 2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.password-reset-page .reset-button:hover {
  background: rgb(105, 65, 199);
  color: white;
}

.password-reset-page a {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.password-reset-page a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.password-reset-page .reset-button:hover {
  text-decoration: none;
}

.password-reset-page a:focus-visible,
.password-reset-page button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.password-reset-page .errorlist {
  margin: 0;
  padding-left: 20px;
  color: #c53030;
  font-size: 0.875rem;
  text-align: left;
}

.password-reset-page .reset-help {
  font-size: 0.875rem;
  line-height: 1.5;
}

.password-reset-page .reset-help ul {
  margin: 0;
  padding-left: 20px;
}

.password-reset-page .reset-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding: 20px 16px;
  color: #718096;
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .password-reset-page .reset-card {
    padding: 24px 20px;
  }
}
