.portal {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(380px, 5fr) 7fr;
}
.portal-side {
  background: var(--dark); color: var(--paper);
  padding: 40px clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; gap: 48px;
  position: relative; overflow: hidden;
}
.portal-side::after {
  content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(196,80,43,.28), transparent 70%);
  pointer-events: none;
}
.portal-brand { color: var(--paper); }
.portal-side-copy { margin-top: auto; position: relative; z-index: 1; }
.portal-side .eyebrow { color: rgba(243,240,232,.5); }
.portal-side .h2 { font-size: clamp(32px, 3.4vw, 48px); }
.portal-features { position: relative; z-index: 1; display: grid; gap: 12px; font-size: 14.5px; color: rgba(243,240,232,.7); }
.portal-features li { display: flex; gap: 12px; align-items: center; }
.portal-features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.portal-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px var(--gutter); position: relative;
}
.portal-back { position: absolute; top: 40px; right: var(--gutter); font-size: 14px; color: var(--ink-2); }
.portal-back:hover { color: var(--ink); }
.portal-card { width: 100%; max-width: 400px; }
.auth-step:focus { outline: none; }
.auth-title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.01em; }
.auth-sub { color: var(--ink-2); font-size: 15px; margin-top: 14px; }
.auth-sub strong { color: var(--ink); font-weight: 500; word-break: break-all; }
.auth-sub.muted { color: var(--ink-3); font-size: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 500; margin: 36px 0 8px; }
.field-input {
  width: 100%; height: 50px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: #b3afa5; }
.field-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,20,18,.07); }
.field-input[aria-invalid="true"] { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: 13px; margin-top: 8px; }
.auth-btn { width: 100%; height: 50px; margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 500; position: relative; }
.auth-btn[disabled] { cursor: default; opacity: .85; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(243,240,232,.35); border-top-color: var(--paper);
  animation: spin .7s linear infinite;
}
.auth-btn.loading .btn-label { display: none; }
.auth-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-fine { font-size: 12.5px; color: var(--ink-3); margin-top: 20px; }
.sent-icon { width: 52px; height: 52px; border-radius: 2px; background: var(--paper-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 28px; }
.sent-icon svg { width: 24px; height: 24px; }
.text-btn { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.portal-help { font-size: 13.5px; color: var(--ink-3); margin-top: 48px; }
.portal-help a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .portal-side { padding: 24px var(--gutter) 32px; gap: 28px; }
  .portal-side-copy { margin-top: 0; }
  .portal-side .h2 { font-size: 30px; }
  .portal-features { display: none; }
  .portal-main { justify-content: flex-start; padding-top: 48px; padding-bottom: 48px; }
  .portal-back { display: none; }
  .auth-title { font-size: 38px; }
}
