.reset-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 78% 12%, rgba(96, 165, 250, .15), transparent 29rem),
    radial-gradient(circle at 12% 72%, rgba(141, 124, 198, .1), transparent 28rem),
    var(--bg);
  color: var(--text);
}

.reset-page::before { display: none; }

.reset-header,
.reset-layout,
.reset-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.reset-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.reset-help-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.reset-help-link:hover,
.reset-help-link:focus-visible { color: var(--primary); }

.reset-layout {
  min-height: calc(100svh - 160px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  padding-block: 48px 70px;
}

.reset-intro { max-width: 540px; }

.reset-kicker,
.reset-step {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reset-intro h1 {
  margin: 17px 0 22px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.reset-intro > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.reset-assurances {
  display: grid;
  gap: 13px;
  margin-top: 34px;
  padding: 0;
  color: #cbd5e1;
  font-size: 14px;
  list-style: none;
}

.reset-assurances li { display: flex; align-items: center; gap: 11px; }
.reset-assurances span {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: #66d3ad;
  font-size: 13px;
  font-weight: 900;
}

.reset-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, .5);
  border-radius: 28px;
  background: rgba(31, 41, 55, .9);
  box-shadow: 0 28px 70px rgba(2, 6, 23, .42);
  backdrop-filter: blur(20px);
}

.reset-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -155px;
  right: -135px;
  border: 38px solid rgba(96, 165, 250, .07);
  border-radius: 50%;
  pointer-events: none;
}

.reset-brand-mobile { display: none; }

.reset-panel {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 44px);
}

.reset-panel[hidden] { display: none; }

.reset-panel h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.reset-panel > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.reset-panel > p strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.reset-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 18px;
  font-size: 28px;
  font-weight: 900;
}

.reset-icon-lock { color: var(--primary); background: var(--primary-soft); }
.reset-icon-success { color: #66d3ad; background: var(--green-soft); }
.reset-icon-error { color: #fca5a5; background: rgba(127, 29, 29, .32); }

.reset-spinner {
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 4px solid rgba(148, 163, 184, .2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: reset-spin .8s linear infinite;
}

@keyframes reset-spin { to { transform: rotate(360deg); } }

.reset-panel form { display: grid; gap: 18px; margin-top: 28px; }
.reset-field { display: grid; gap: 8px; }
.reset-field label { color: #e2e8f0; font-size: 13px; font-weight: 700; }

.reset-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--bg-deep);
  color: var(--text);
  padding: 0 15px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.reset-field input::placeholder { color: var(--muted-dark); }
.reset-field input:hover { border-color: #475569; }
.reset-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .12);
  background: #101827;
}
.reset-field input[aria-invalid="true"] { border-color: #f87171; }

.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 74px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 59px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.password-toggle:hover,
.password-toggle:focus-visible { background: var(--primary-soft); outline: none; }

.field-hint,
.field-error { min-height: 16px; font-size: 12px; }
.field-hint { color: var(--muted); }
.field-error { color: #fca5a5; }

.form-message {
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 12px;
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
}
.form-message[hidden] { display: none; }

.reset-primary-button,
.reset-secondary-button,
.reset-link-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.reset-primary-button {
  border: 1px solid transparent;
  background: var(--primary);
  color: #0b1220;
  box-shadow: 0 13px 27px rgba(96, 165, 250, .17);
}
.reset-primary-button:hover:not(:disabled) { background: #7db6fb; transform: translateY(-1px); }
.reset-primary-button:disabled { opacity: .62; cursor: wait; }
.button-arrow { margin-left: auto; font-size: 19px; }

.reset-secondary-button {
  margin-top: 25px;
  border: 1px solid var(--line);
  background: var(--surface-high);
  color: var(--text);
}
.resend-message { margin-top: 18px; }
.resend-message + .reset-secondary-button { margin-top: 12px; }
.reset-secondary-button:disabled { opacity: .55; cursor: default; }
.reset-secondary-button:not(:disabled):hover { border-color: var(--primary); }

.reset-link-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
}
.reset-link-button:hover { color: #93c5fd; }

.reset-text-link {
  display: block;
  margin-top: 19px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.reset-text-link:hover { color: var(--primary); }

.reset-note {
  margin-top: 22px;
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: rgba(96, 165, 250, .08);
  color: #cbd5e1;
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.reset-noscript { border-top: 1px solid var(--line); }

.reset-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.reset-footer nav { display: flex; gap: 18px; }
.reset-footer a { text-decoration: none; }
.reset-footer a:hover { color: var(--primary); }

@media (max-width: 820px) {
  .reset-header,
  .reset-layout,
  .reset-footer { width: min(100% - 28px, 560px); }
  .reset-header { min-height: 70px; }
  .reset-layout { min-height: auto; grid-template-columns: 1fr; gap: 24px; padding-block: 22px 42px; }
  .reset-intro { display: none; }
  .reset-brand-mobile { display: block; padding: 24px 24px 0; }
  .reset-brand-mobile img { border-radius: 15px; box-shadow: 0 8px 22px rgba(2, 6, 23, .32); }
  .reset-card { border-radius: 24px; }
  .reset-panel { padding: 25px 24px 28px; }
  .reset-panel h2 { font-size: 29px; }
  .reset-footer { min-height: 70px; }
}

@media (max-width: 440px) {
  .reset-header .brand small { display: none; }
  .reset-help-link { font-size: 12px; }
  .reset-card { border-radius: 21px; }
  .reset-brand-mobile { padding: 20px 20px 0; }
  .reset-panel { padding: 22px 20px 24px; }
  .reset-panel h2 { font-size: 27px; }
  .reset-panel > p { font-size: 14px; }
  .reset-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reset-spinner { animation-duration: 1.8s !important; }
}
