:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --ink: #121826;
  --muted: #5d6b82;
  --line: #d9e8f5;
  --blue: #1575ff;
  --green: #15956f;
  --shadow: 0 20px 52px rgba(31, 84, 150, 0.16);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { min-height: 100vh; margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }

.reset-shell {
  display: grid;
  width: min(520px, calc(100% - 32px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.reset-card {
  display: grid;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(217, 232, 245, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand { display: inline-flex; width: fit-content; }
.brand img { display: block; width: min(210px, 62vw); height: 42px; object-fit: contain; object-position: left center; }
.reset-heading { display: grid; gap: 16px; }
.reset-heading--center { text-align: center; }
.reset-heading h1 { margin: 0; font-size: 30px; line-height: 1.16; letter-spacing: 0; }
.reset-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #bdf1db;
  border-radius: 8px;
  color: #0f684f;
  background: #dff9ef;
  font-size: 14px;
  font-weight: 800;
}

.reset-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { color: #263d58; font-size: 14px; font-weight: 800; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfe1f0;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  outline: none;
}
.field input:focus { border-color: rgba(21, 117, 255, 0.72); box-shadow: 0 0 0 4px rgba(21, 117, 255, 0.12); }

.button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.button--primary { color: #fff; background: #1575ff; box-shadow: 0 14px 26px rgba(21, 117, 255, 0.25); }
.button:disabled { cursor: wait; opacity: 0.72; }
.secondary-link { color: #0d4c8c; font-weight: 800; text-align: center; }
.password-hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-error { display: none; margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 107, 137, 0.38); border-radius: 8px; color: #9b2441; background: rgba(255, 107, 137, 0.1); font-size: 14px; font-weight: 750; }
.form-error.is-visible { display: block; }
.success-mark { display: grid; width: 58px; height: 58px; place-items: center; justify-self: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 32px; font-weight: 900; }
.is-hidden { display: none; }

@media (max-width: 560px) {
  .reset-shell { width: min(100% - 24px, 460px); padding: 16px 0 22px; }
  .reset-card { padding: 22px; }
  .reset-heading h1 { font-size: 26px; }
}
