/* Password reset page: Figma "V3.5 / Password Reset 3.5 · Portal" (node 5521:622). */

.reset-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: #f3f3f3;
  color: #1f2937;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

.reset-page *,
.reset-page *::before,
.reset-page *::after {
  box-sizing: border-box;
}

.reset-page [hidden] {
  display: none !important;
}

.reset-column {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.reset-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reset-logo {
  display: block;
  width: 240px;
  height: 36.8px;
}

.reset-heading {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.reset-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #1f2937;
}

.reset-subtitle,
.reset-message {
  margin: 0;
  color: #4b5563;
  text-align: center;
}

/* The status live region stays rendered (empty, zero height) so screen readers
   announce messages inserted into it; it only takes space once it has text. */
.reset-message:not(:empty) {
  margin-top: 14px;
}

.reset-message.is-error {
  color: #c4261a;
}

.reset-form {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reset-input {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.reset-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.reset-input:focus {
  border-color: #1e88d2;
}

.reset-via {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.reset-via-options {
  display: flex;
  align-items: center;
  gap: 28px;
}

.reset-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #4b5563;
  font-weight: 400;
  cursor: pointer;
}

.reset-radio input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  display: grid;
  place-content: center;
  border: 1.5px solid #6b7280;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.reset-radio input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e88d2;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
}

.reset-radio input:checked {
  border-color: #1e88d2;
}

.reset-radio input:checked::before {
  transform: scale(1);
}

@media (forced-colors: active) {
  .reset-radio input {
    -webkit-appearance: radio;
    appearance: auto;
  }

  .reset-radio input::before {
    display: none;
  }
}

.reset-radio input:focus-visible,
.reset-btn:focus-visible {
  outline: 2px solid #1e88d2;
  outline-offset: 2px;
}

.reset-btn {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 3px;
  /* Dark text keeps every button label at 4.5:1 or better, hover included. */
  color: #111111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease-in-out;
}

.reset-btn:hover:not(:disabled) {
  filter: brightness(0.95);
}

.reset-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reset-btn--send {
  background: #f15a29;
  border-color: #d84a1b;
}

.reset-btn--verify {
  background: #2ea84a;
  border-color: #278f3e;
}

.reset-btn--resend {
  background: #1e88d2;
  border-color: #1a78ba;
}

.reset-btn--back {
  background: #fff;
  border-color: #e2e2e2;
  color: #6b7280;
  font-weight: 500;
}

.reset-btn--update {
  background: #fdaa5b;
  border-color: #f5a04a;
}
