/* finesse · register=product · existing seafoam/navy/teal tokens
 * system 15/14/12, weight 400/500 · separate authentication document */
.auth-page { background: var(--bg); }
html, body { overflow-x: clip; }
.auth-container { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(100%, 400px); min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 28px; color: var(--ink-3); font-size: 12px; }
.auth-brand img { flex-shrink: 0; object-fit: contain; }
.auth-card h1 { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.auth-card .page-description { margin-top: 8px; }
.auth-card form { gap: 16px; margin: 24px 0 20px; }
.auth-card label { font-size: 12px; color: var(--ink-2); }
.auth-card input { font-size: 14px; background: var(--bg); }
.auth-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-card .primary-button { width: 100%; min-height: 44px; white-space: nowrap; }
.auth-card .primary-button:active { transform: translateY(1px); }
.auth-error { min-height: 19px; font-size: 12px; color: var(--down); overflow-wrap: anywhere; }
.auth-notice { margin-top: 20px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.auth-footer { color: var(--ink-3); font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 414px) { .auth-container { padding: 20px 16px; } .auth-card { padding: 24px 20px; } }

/* Login v2 · same brand palette; editorial campus visual and an open form. */
.auth-page { --login-surface: #eef6f3; --login-field: #ffffff; --login-muted: #5d7078; background: var(--login-surface); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-header, .login-footer { width: min(1040px, calc(100% - 80px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-header { padding-top: 32px; padding-bottom: 24px; }
.login-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--navy); font-size: 15px; font-weight: 500; }
.login-brand img { flex-shrink: 0; object-fit: contain; }
.login-workspace { color: var(--login-muted); font-size: 12px; white-space: nowrap; }
.login-layout { width: min(1040px, calc(100% - 80px)); margin: auto; padding-block: 20px; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 344px); column-gap: 96px; align-items: center; }
.login-story, .login-form-panel { min-width: 0; }
.login-scene { position: relative; margin: 0; overflow: clip; border-radius: 24px; background: var(--accent-soft); }
.login-scene > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-copy { position: absolute; top: 32px; left: 32px; right: 24px; color: var(--navy); }
.story-kicker { display: block; margin-bottom: 12px; color: var(--accent); font-size: 12px; }
.story-copy h2 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.story-copy p { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.story-caption { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 20px; color: var(--login-muted); font-size: 12px; }
.story-caption i { width: 1px; height: 12px; background: var(--line); }
.login-form-panel { padding-bottom: 28px; }
.login-eyebrow { color: var(--accent); font-size: 12px; margin-bottom: 10px; }
.login-form-panel h1 { color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.5; }
.login-description { margin-top: 10px; color: var(--login-muted); font-size: 12px; line-height: 1.65; }
.login-form-panel form { display: grid; gap: 20px; margin: 28px 0 20px; }
.login-field { display: grid; gap: 8px; }
.login-field label { font-size: 12px; color: var(--ink-2); }
.login-input { position: relative; display: flex; align-items: center; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--login-field); }
.login-input:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.login-input input { width: 100%; min-width: 0; height: 100%; padding: 0 14px 0 42px; border: 0; border-radius: inherit; color: var(--navy); background: transparent; font-size: 14px; font-weight: 400; outline: none; }
.login-input input::placeholder { color: var(--login-muted); font-size: 12px; }
.login-input:has(.password-toggle) input { padding-right: 48px; }
.field-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--login-muted); pointer-events: none; }
.password-toggle { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; width: 44px; min-height: 44px; border: 0; border-radius: 10px; color: var(--login-muted); background: transparent; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.login-form-panel .auth-error { margin-top: -6px; margin-bottom: -6px; }
.login-form-panel .primary-button { justify-content: center; position: relative; width: 100%; min-height: 48px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: none; white-space: nowrap; }
.login-form-panel .primary-button:hover { transform: none; }
.login-form-panel .primary-button:active { transform: translateY(1px); }
.login-form-panel .primary-button svg { width: 18px; height: 18px; position: absolute; right: 16px; }
.login-access-note { padding-top: 16px; border-top: 1px solid var(--line); color: var(--login-muted); font-size: 12px; line-height: 1.6; }
.login-footer { padding-top: 24px; padding-bottom: 24px; color: var(--login-muted); font-size: 12px; }
@media (max-width: 1000px) { .login-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px; } .story-caption { gap: 14px; } .story-copy { top: 24px; left: 24px; } }
@media (max-width: 760px) {
  .login-header, .login-layout, .login-footer { width: min(440px, calc(100% - 40px)); }
  .login-header { padding-top: 24px; padding-bottom: 24px; }
  .login-brand { font-size: 14px; gap: 8px; }
  .login-brand img { width: 32px; height: 32px; }
  .login-layout { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-block: 0; }
  .login-scene { border-radius: 20px; }
  .login-scene > img { height: 192px; object-position: center 55%; }
  .story-copy { top: 20px; left: 20px; right: 20px; }
  .story-kicker { display: none; }
  .story-copy p { margin-top: 4px; }
  .story-caption { display: none; }
  .login-form-panel { padding-bottom: 0; }
  .login-form-panel form { margin-top: 24px; }
  .login-access-note { padding-top: 12px; }
  .login-footer { padding-block: 28px 20px; font-size: 12px; flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 375px) {
  .login-header, .login-layout, .login-footer { width: calc(100% - 32px); }
  .login-scene > img { height: 160px; }
  .login-layout { row-gap: 28px; }
  .story-copy { top: 16px; left: 16px; }
}
