body { background:var(--cloud); }
.portal-layout { min-height:100svh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.portal-brand { position:relative; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; min-width:0; gap:28px; padding:48px clamp(28px,6vw,100px); background:var(--navy); color:#fff; overflow:hidden; isolation:isolate; }
.portal-brand::after { content:""; position:absolute; inset:0 0 0 28%; z-index:-1; background:url("../patterns/pattern-dark-tile.svg") center/170px; opacity:.24; mask-image:linear-gradient(90deg,transparent,#000); }
.portal-brand .brand { width:175px; }
.portal-brand h2 { font-size:clamp(37px,4.1vw,68px); }
.portal-brand h2 span { color:#b7dedf; }
.portal-brand p { color:#d3e5ef; margin-top:20px; }
.portal-brand .kicker { color:var(--mint); }
.portal-back { font-size:14px; }
.portal-side { padding:38px 24px; display:grid; place-items:center; }
.portal-form-wrap { width:min(100%,450px); }
.portal-form-wrap h1 { font-size:clamp(32px,3.4vw,50px); }
.portal-fields { margin-top:24px; }
.portal-form-wrap label { display:block; margin:14px 0 5px; font-size:14px; font-weight:600; }
.portal-form-wrap input,.portal-form-wrap [role=group]>.btn,.portal-form-wrap>.btn { width:100%; }
.portal-form-wrap [role=group]>.btn { margin-top:16px; }
.password-field { position:relative; }
.password-field input { padding-right:46px; }
.password-field button { position:absolute; right:3px; top:3px; }
.portal-help,.portal-legal { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:12px; font-size:14px; color:var(--accent); }
.portal-help a:hover,.portal-legal a:hover { text-decoration:underline; }
.portal-help .icon { width:15px; height:15px; }
.portal-account { margin:18px 0 12px; font-size:14px; }
.portal-legal { justify-content:center; font-size:12px; margin-top:18px; color:var(--muted); }
.portal-mobile-brand { display:none; }
.portal-result:empty { display:none; }
.portal-result { margin-top:12px; padding:12px; background:#f7e9eb; color:var(--error); border:1px solid #dfbcc3; border-radius:4px; font-size:14px; }
.portal-result p { color:inherit; }
.portal-result.pending { color:var(--muted); background:#eef4f7; border-color:var(--line); }
.portal-result.pending::before { content:""; display:inline-block; width:9px; height:9px; margin-right:8px; background:var(--accent); clip-path:polygon(0 0,100% 0,0 100%); animation:module-in .4s var(--ease) both; }
@media(max-width:740px) {
  .portal-layout { grid-template-columns:1fr; }
  .portal-brand { display:none; }
  .portal-side { align-items:start; padding:24px 18px; }
  .portal-mobile-brand { display:inline-block; margin-bottom:28px; }
}
