:root {
  --blue: #247fb8;
  --deep: #164f78;
  --pale: #eaf7ff;
  --ink: #17243a;
  --muted: #66788d;
  --line: #d7e6f0;
}
* {
  box-sizing: border-box;
}
body {
  background:
    radial-gradient(circle at 15% 10%, #dff3ff, transparent 35%),
    linear-gradient(145deg, #f8fcff, #edf7fc);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}
.reset-page {
  margin: auto;
  max-width: 500px;
  padding: 5vh 20px;
}
.back-link {
  color: var(--deep);
  display: inline-flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.reset-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(22, 79, 120, 0.12);
  padding: clamp(1.5rem, 5vw, 2.6rem);
}
.reset-mark {
  align-items: center;
  background: var(--pale);
  border-radius: 14px;
  color: var(--blue);
  display: flex;
  font-size: 1.4rem;
  height: 50px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 50px;
}
.eyebrow {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  margin: 0.45rem 0;
}
.intro {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.4rem;
}
.reset-alert {
  border-radius: 12px;
  display: flex;
  font-size: 0.85rem;
  gap: 0.6rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0.8rem;
}
.reset-alert.error {
  background: #fff0f0;
  color: #9f2f2f;
}
.reset-alert.success {
  background: #ecfdf5;
  color: #166534;
}
form > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0.9rem 0 0.45rem;
}
input {
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  outline: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
}
input:focus {
  border-color: #63b7df;
  box-shadow: 0 0 0 4px rgba(99, 183, 223, 0.14);
}
form > button {
  background: linear-gradient(120deg, var(--deep), #3ca1d3);
  border: 0;
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 1.2rem;
  padding: 0.85rem;
  width: 100%;
}
.type-choice {
  background: #eef5f9;
  border-radius: 12px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.35rem;
}
.type-choice input {
  opacity: 0;
  position: absolute;
}
.type-choice span {
  border-radius: 9px;
  color: var(--muted);
  display: block;
  font-weight: 750;
  padding: 0.65rem;
  text-align: center;
}
.type-choice input:checked + span {
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 79, 120, 0.09);
  color: var(--deep);
}
.code-input {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
}
.secondary-form .link-button {
  background: transparent;
  color: var(--blue);
  margin-top: 0.6rem;
  padding: 0.5rem;
}
