:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #23282b;
  background: #f6f5f2;
  font-synthesis: none;
  --red: #d71932;
  --muted: #677075;
  --line: #dbdeda;
  --focus: #a21429;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
a {
  color: var(--red);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 40px 64px 24px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  flex: 1;
  padding: 64px 0;
}
.intro {
  align-self: center;
  animation: arrive 0.35s ease-out both;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.eyebrow:before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--red);
}
.intro h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 420px;
}
.intro p:last-child {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 320px;
}
.form-area {
  max-width: 430px;
  width: 100%;
  justify-self: end;
  animation: arrive 0.35s 0.08s ease-out both;
}
.section-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #f4e7e8;
  border-radius: 50%;
  margin-bottom: 24px;
}
.section-mark svg {
  width: 20px;
  height: 20px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 12px;
}
.subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
}
.field {
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
}
input:not([type='hidden']) {
  width: 100%;
  background: #fff;
  border: 1px solid #cbd0ce;
  border-radius: 8px;
  color: #23282b;
  min-height: 52px;
  padding: 13px 15px;
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder {
  color: #919998;
}
input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px #d7193215;
}
input[aria-invalid='true'] {
  border-color: var(--red);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 84px;
}
.toggle-password {
  position: absolute;
  right: 7px;
  top: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 8px;
  min-height: 40px;
}
.toggle-password:hover {
  color: var(--red);
}
.form-links {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  margin: -4px 0 28px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 15px 20px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #b71128;
  border-color: #b71128;
  transform: translateY(-1px);
}
.primary:active {
  transform: translateY(0);
}
.primary svg {
  height: 16px;
  width: 16px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  text-decoration: none;
  margin-top: 24px;
}
.back:hover {
  text-decoration: underline;
}
.helper {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px 0 0;
}
.message {
  font-size: 14px;
  line-height: 1.65;
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--red);
  margin: 0 0 24px;
  color: #922033;
  overflow-wrap: anywhere;
}
.message.success {
  border-color: #3c6653;
  color: #315544;
}
.requirements {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.requirements li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.requirements li:before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #9ba3a0;
}
.requirements li.met {
  color: #315544;
}
.requirements li.met:before {
  background: #315544;
}
.notice {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.completed {
  animation: arrive 0.2s ease-out both;
}
.completed h1 {
  margin-top: 6px;
}
.completed .subtitle {
  margin-bottom: 24px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 850px) {
  .shell {
    padding: 30px 28px 22px;
  }
  main {
    gap: 44px;
  }
  .intro h2 {
    font-size: 44px;
  }
  .topbar-note {
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 28px 24px 20px;
  }
  .brand {
    width: 146px;
  }
  .topbar-note {
    display: none;
  }
  main {
    display: flex;
    padding: 48px 0;
    align-items: center;
    justify-content: center;
  }
  .intro {
    display: none;
  }
  .form-area {
    max-width: 430px;
  }
  h1 {
    font-size: 28px;
  }
  .subtitle {
    margin-bottom: 28px;
  }
  footer {
    font-size: 10px;
    line-height: 1.5;
  }
  .section-mark {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
