.login_split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.manifesto_side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
  border-right: 1px solid var(--line);
}

.manifesto_side .section_kicker {
  margin-bottom: 26px;
}

.manifesto_side .ghost_mark {
  right: -70px;
  bottom: -40px;
  width: 360px;
  opacity: 0.06;
  animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-14px) rotate(6deg);
  }
}

.manifesto_title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 0.98;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 84px);
  text-transform: uppercase;
}

.manifesto_title span {
  display: block;
}

.line_solid {
  color: var(--ink);
}

.line_gradient {
  background: linear-gradient(
    95deg,
    var(--violet) 0%,
    var(--accent) 45%,
    var(--res) 80%,
    var(--violet) 120%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 100% 0;
  }
}

.manifesto_text {
  margin: 30px 0 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
}

.manifesto_text b {
  color: var(--ink);
  font-weight: 650;
}

.form_side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 60px;
  background: var(--bg2);
}

.auth_card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth_tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 34px;
}

.auth_tab {
  background: var(--panel);
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 14px 10px;
  transition:
    background 0.18s,
    color 0.18s;
}

.auth_tab:hover {
  color: var(--ink);
}

.auth_tab[aria-selected="true"] {
  background: var(--bg2);
  color: var(--violet);
  box-shadow: inset 0 -2px 0 var(--violet);
}

.form_head {
  margin-bottom: 26px;
}

.form_head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.form_head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}

.auth_form {
  display: none;
}

.auth_form.active {
  display: block;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form_field {
  margin-bottom: 18px;
}

.form_field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.form_field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 13px 14px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.form_field input::placeholder {
  color: var(--faint);
}

.form_field input:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}

.field_invalid input {
  border-color: var(--red);
}

.field_error {
  display: none;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--red);
}

.field_invalid .field_error {
  display: block;
}

.form_row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: -2px 0 22px;
}

.form_error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 9%, var(--panel));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--red);
}

.auth_form button[type='submit']:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mini_link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-decoration: none;
}

.mini_link:hover {
  color: var(--accent);
}

.form_note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
  text-align: center;
}

.form_note b {
  color: var(--res);
  font-weight: 650;
}

.form_swap {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dim);
}

.form_swap button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--violet);
  font-weight: 650;
  padding: 0;
}

.form_swap button:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login_split {
    grid-template-columns: 1fr;
  }
  .manifesto_side {
    display: none;
  }
  .form_side {
    padding: 44px 24px;
  }
}

@media (max-width: 640px) {
  .form_side {
    padding: 34px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .line_gradient {
    animation: none;
  }
  .manifesto_side .ghost_mark {
    animation: none;
    transform: rotate(8deg);
  }
  .auth_form.active {
    animation: none;
  }
}
