* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth-card { width: 100%; max-width: 900px; display: grid; grid-template-columns: 5fr 7fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.auth-brand { background: var(--side-bg); color: var(--side-text); padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand-name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--side-strong); }
.auth-brand-name .logo { width: 32px; height: 32px; }
.auth-brand-copy h2 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--side-strong); text-wrap: balance; }
.auth-brand-copy p { font-size: 14px; line-height: 1.5; margin: 0; max-width: 34ch; }
.auth-brand-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.auth-brand-list li { display: flex; gap: 10px; align-items: baseline; }
.auth-brand-list li::before { content: "—"; color: var(--harvest); }
.auth-brand-foot { font-size: 13px; color: var(--side-muted); }

.auth-form-side { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-side h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.auth-form-side .lead { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.field input, .field select { font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text); transition: border-color 150ms var(--ease-out); }
.field input:hover, .field select:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input:read-only { background: var(--surface-2); color: var(--text-muted); border-style: dashed; }
.field .hint { font-size: 13px; color: var(--text-muted); }

.form-error { background: var(--crit-tint); color: var(--crit-fg); border-left: 4px solid var(--crit-fg); border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

.form-actions { margin-top: 2px; }
.btn { font: inherit; font-size: 14.5px; font-weight: 500; padding: 11px 20px; border-radius: var(--r); border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; transition: background-color 150ms var(--ease-out), transform 160ms var(--ease-out); }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: scale(0.98); }

.form-foot { font-size: 13px; color: var(--text-muted); margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.form-foot a { color: var(--accent-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.form-foot a:hover { text-decoration-color: currentColor; }

@media (max-width: 760px) {
  body { padding: 14px; align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-brand { padding: 22px 22px 18px; gap: 14px; }
  .auth-brand-copy h2 { font-size: 19px; }
  .auth-brand-copy p, .auth-brand-list, .auth-brand-foot { display: none; }
  .auth-form-side { padding: 24px 22px 26px; }
  .form-row { flex-direction: column; gap: 14px; }
}
