.portal-page { display: flex; flex-direction: column; min-height: 100svh; }
.portal-container { width: min(calc(100% - 128px), 1200px); margin-inline: auto; }
.portal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 112px; gap: 4px 24px; }
.portal-site-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-secondary); font-size: 15px; line-height: 1.4; }
.portal-site-link:hover, .portal-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(64px, 10vw, 160px); flex: 1; padding-block: 64px 80px; }
.auth-introduction { min-width: 0; align-self: center; padding-bottom: 8px; }
.auth-eyebrow { margin-bottom: 18px; color: var(--ink-secondary); font-size: 14px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4; }
.auth-statement { font-family: var(--sans); font-size: clamp(36px, 4.1vw, 58px); font-weight: 750; letter-spacing: -.055em; line-height: 1.1; overflow-wrap: anywhere; }
.auth-introduction-copy { max-width: 360px; margin-top: 22px; font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; line-height: 1.4; }
.auth-art { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 30px; }
.auth-card { min-width: 0; width: 100%; max-width: 420px; justify-self: end; }
.auth-panel h1 { font-size: clamp(32px, 3.2vw, 44px); font-weight: 750; letter-spacing: -.055em; line-height: 1.12; text-wrap: balance; }
.auth-description { margin-top: 16px; color: var(--ink-secondary); font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; line-height: 1.4; }
.auth-form { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.form-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-field label { font-size: 15px; font-weight: 550; letter-spacing: -.015em; line-height: 1.4; }
.form-field input { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 13px 16px; border: 1px solid #92908a; border-radius: 5px; background: #fffefa; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; transition: border-color 120ms ease; }
.form-field input:hover { border-color: var(--ink-secondary); }
.form-field input:focus-visible { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.auth-text-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.field-heading .auth-text-link { font-size: 13px; line-height: 1.5; }
.auth-text-link:hover { color: var(--ink-secondary); }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle { position: absolute; top: 5px; right: 5px; min-width: 60px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--ink-secondary); font-size: 13px; font-weight: 550; cursor: pointer; }
.password-toggle:hover { background: var(--cream-secondary); color: var(--ink); }
.field-hint { color: var(--ink-secondary); font-size: 13px; line-height: 1.5; }
.auth-submit { min-height: 54px; padding: 14px 20px; font-size: 17px; letter-spacing: -.025em; cursor: pointer; }
.auth-submit:disabled { cursor: wait; opacity: .58; }
.auth-submit:disabled:hover { background: var(--ink); border-color: var(--ink); }
.auth-switch { margin-top: 28px; color: var(--ink-secondary); font-size: 14px; line-height: 1.6; text-align: center; }
.form-error, .session-message { color: #8e352b; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.form-error { padding: 12px 14px; border-left: 2px solid #8e352b; background: #f8ece5; }
.session-message { margin-top: 20px; }
.retry-session { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; cursor: pointer; }
.auth-status { margin-top: 20px; padding: 12px 14px; border-left: 2px solid #4c6650; background: #edf0e8; color: #344b37; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-status.is-error { border-left-color: #8e352b; background: #f8ece5; color: #8e352b; }
.auth-confirmation .auth-submit { margin-top: 32px; }
.confirmation-hint { margin-top: 18px; color: var(--ink-secondary); font-size: 14px; line-height: 1.55; }
.portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--ink-secondary); font-size: 13px; line-height: 1.5; }
.portal-footer a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.dashboard-header { border-bottom: 1px solid var(--line); }
.dashboard-user { display: flex; align-items: center; gap: 24px; min-width: 0; }
.dashboard-email { max-width: 320px; color: var(--ink-secondary); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.signout-button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.signout-button:hover { background: var(--cream-secondary); }
.signout-button:disabled { cursor: wait; opacity: .58; }
.dashboard-main { flex: 1; padding-block: 64px; }
.dashboard-main h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 750; letter-spacing: -.055em; line-height: 1.12; }
.dashboard-main .session-message { max-width: 480px; }

@media (max-width: 1023px) {
  .portal-container { width: calc(100% - 80px); }
  .auth-layout { gap: 56px; padding-block: 52px 64px; }
  .auth-statement { font-size: 42px; }
  .auth-introduction-copy { font-size: 22px; }
  .auth-panel h1 { font-size: 36px; }
}

@media (max-width: 767px) {
  .portal-container { width: calc(100% - 40px); }
  .portal-header { min-height: 88px; gap: 4px 18px; }
  .portal-header .wordmark { font-size: 26px; }
  .portal-site-link { gap: 6px; font-size: 13px; }
  .auth-layout { display: block; padding-block: 40px 64px; }
  .auth-introduction { display: none; }
  .auth-card { margin-inline: auto; }
  .auth-eyebrow { margin-bottom: 16px; }
  .auth-panel h1 { font-size: clamp(32px, 8vw, 40px); }
  .auth-description { font-size: 21px; }
  .auth-form { gap: 22px; margin-top: 30px; }
  .auth-switch { margin-top: 24px; }
  .portal-footer { flex-wrap: wrap; gap: 4px 24px; padding-block: 20px 24px; font-size: 12px; }
  .dashboard-header { flex-wrap: wrap; align-items: center; padding-block: 20px; }
  .dashboard-user { gap: 16px; justify-content: flex-end; }
  .dashboard-email { max-width: 190px; font-size: 12px; }
  .dashboard-main { padding-block: 40px; }
}

@media (max-width: 359px) {
  .portal-site-link { max-width: 100px; font-size: 12px; }
  .field-heading .auth-text-link { font-size: 12px; }
  .dashboard-user { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .form-field input { transition: none; }
}

.verification-resend { min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-size: 14px; line-height: 1.5; cursor: pointer; }
.verification-resend:disabled { opacity: .65; cursor: default; }
input[autocomplete="one-time-code"] { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
