.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  width: min(1100px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
}

.auth-story,
.auth-column,
.auth-card { min-width: 0; }
.auth-story { max-width: 580px; }
.auth-story .portal-brand { margin-bottom: clamp(60px, 12vh, 130px); }
.auth-kicker {
  margin-bottom: 18px;
  color: var(--portal-muted);
  font: 700 11px/1 "Manrope", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-story h1 { font-size: clamp(48px, 6vw, 78px); }
.auth-story h1 em { color: var(--portal-violet-dark); font-style: normal; }
.auth-story > p:last-child {
  max-width: 500px;
  margin: 26px 0 0;
  color: var(--portal-muted);
  font-size: 18px;
}

.auth-card { padding: clamp(24px, 4vw, 40px); }
.auth-card h2 { font-size: 30px; }
.auth-card-intro { margin: 12px 0 26px; color: var(--portal-muted); }
.auth-form { display: grid; gap: 17px; }
.auth-form .portal-input {
  min-height: 50px;
  border: 1.5px solid #858590;
  background: #f8f8fc;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.auth-form .portal-input:hover { border-color: #60606e; }
.auth-form .portal-input:focus {
  border-color: var(--portal-violet-dark);
  background: #fff;
  outline: 2px solid var(--portal-violet-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgb(104 78 232 / 12%);
}
.auth-form .portal-input[aria-invalid="true"] { border-color: var(--portal-danger); }
.auth-form .portal-button { margin-top: 4px; }
/* Busy buttons stay focusable (aria-disabled) so keyboard focus is never lost. */
.auth-form .portal-button[aria-disabled="true"] { cursor: wait; opacity: .55; }
.auth-status { min-height: 20px; margin: 2px 0 0; font-size: 13px; }
.auth-feedback { min-height: 20px; margin: 2px 0 0; }
.auth-feedback .auth-status { min-height: 0; margin: 0; }
.auth-hint { margin: -9px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.5; }
.auth-hint a { color: var(--portal-violet-dark); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal { margin: 0; }
.show-password {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--portal-muted);
  font-size: 14px;
  cursor: pointer;
}
.show-password input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--portal-violet-dark); }
.auth-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 11px;
  color: var(--portal-muted);
  font-size: 13px;
}
.auth-legal-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; padding-inline: 8px; font-size: 13px; }
.auth-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--portal-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-legal-links a:hover { color: var(--portal-violet-dark); }

@media (max-width: 1100px) {
  .auth-layout { gap: clamp(32px, 5vw, 56px); }
  .auth-story h1 { font-size: clamp(46px, 5.6vw, 62px); }
}

@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 560px);
    padding: 22px 0 44px;
  }
  .auth-story .portal-brand { margin-bottom: 50px; }
  .auth-story h1 { font-size: clamp(43px, 13vw, 60px); }
  .auth-story > p:last-child { font-size: 16px; }
}
