:root {
  --navy: #0c1a2e;
  --navy-800: #12233c;
  --blue: #2f6bff;
  --blue-dark: #1c4fd6;
  --ink: #17263b;
  --muted: #5d6b80;
  --line: #e3e8ef;
  --red: #bf3d3d;
  --red-soft: #fdecec;
  --green: #18794e;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 107, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-800));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 36px 34px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 24px 64px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}

.brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), #6d8dff);
}

.brand strong {
  font-size: 16px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

input:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}

button {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 79, 214, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.forgot-password {
  width: auto;
  min-height: 32px;
  margin: 8px 0 0 auto;
  padding: 4px 0;
  display: block;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 650;
}

.forgot-password:hover {
  background: transparent;
  text-decoration: underline;
}

.forgot-password[hidden] {
  display: none;
}

.error {
  display: none;
  margin-top: 16px;
  padding: 11px 14px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #eaf7f0;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.password-requirements {
  margin-top: 12px;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.password-requirements[hidden] {
  display: none;
}

.password-requirements p {
  font-weight: 700;
}

.password-requirements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 8px;
  padding-left: 18px;
}

.password-requirements li {
  line-height: 1.35;
}

.password-requirements li.valid {
  color: var(--green);
  font-weight: 700;
}

.foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.foot a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.hidden {
  display: none;
}

@media (max-width: 420px) {
  .card {
    padding: 30px 24px 26px;
  }

  .password-requirements ul {
    grid-template-columns: 1fr;
  }
}
