:root { color-scheme: light; --ink: #0f172a; --muted: #64748b; --line: #dce4ee; --canvas: #f8fafc; --green: #059669; }
* { box-sizing: border-box; }
body { display: flex; min-width: 320px; min-height: 100vh; flex-direction: column; margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.3); outline-offset: 2px; }
.auth-header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; padding: 0 max(24px, calc((100vw - 1280px) / 2)); }
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-mark { display: grid; width: 34px; height: 34px; grid-template-columns: repeat(2, 1fr); gap: 4px; border-radius: 8px; background: var(--ink); padding: 6px; }
.auth-mark i { border-radius: 3px; background: #e2e8f0; }
.auth-mark i:first-child { background: #38bdf8; }
.auth-mark i:last-child { background: #10b981; }
.auth-brand strong { font-size: 0.95rem; }
.auth-brand b { color: #0284c7; }
.auth-header nav { display: flex; gap: 22px; }
.auth-header nav a { color: #475569; font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.auth-header nav a:hover { color: var(--ink); text-decoration: underline; }
.auth-main { display: grid; flex: 1; place-items: center; padding: 42px 18px; }
.auth-card { width: min(100%, 440px); border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 30px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07); }
.auth-card.auth-card-wide { width: min(100%, 640px); }
.auth-card-heading { margin-bottom: 24px; text-align: center; }
.account-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; border-radius: 9px; background: #eef4ff; color: var(--ink); font-size: 0.9rem; font-weight: 800; }
.auth-card h1 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.auth-card-heading p { margin: 7px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.auth-form { display: grid; gap: 17px; }
.auth-form label > span:first-child { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 100%; min-height: 43px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; padding: 10px 11px; color: var(--ink); outline: none; }
.auth-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.label-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.label-row a { color: #334155; font-size: 0.68rem; font-weight: 600; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 68px !important; }
.password-field button { position: absolute; top: 7px; right: 7px; min-height: 29px; border: 0; border-radius: 5px; background: #f1f5f9; padding: 5px 8px; color: #475569; font-size: 0.65rem; font-weight: 650; }
.remember-row { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 0.7rem; }
.remember-row input { width: 16px; height: 16px; accent-color: var(--ink); }
.auth-submit { min-height: 44px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #1e293b; }
.auth-submit:disabled, .auth-secondary:disabled { cursor: wait; opacity: 0.68; }
.auth-secondary { width: 100%; min-height: 42px; margin-top: 12px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: var(--ink); font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.auth-secondary:hover { background: #f8fafc; }
.auth-link-button:not([hidden]) { display: grid; margin-top: 12px; place-items: center; text-decoration: none; }
.auth-message { margin-top: 16px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; padding: 12px 14px; color: #075985; font-size: 0.72rem; line-height: 1.5; }
.auth-message.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.auth-message.success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.auth-message strong, .auth-message p { display: block; }
.auth-message p { margin: 3px 0 0; }
.auth-alternative { margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 0.72rem; text-align: center; }
.auth-alternative a { color: var(--ink); font-weight: 700; }
.auth-alternative br + a { display: inline-block; margin-top: 7px; }
.password-rules { display: grid; gap: 4px; margin: -7px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.66rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-notice { margin-bottom: 20px; border-radius: 8px; background: #eef4ff; padding: 15px 16px; color: #334155; font-size: 0.75rem; line-height: 1.5; }
.account-notice strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 0.82rem; }
.terms-row { align-items: flex-start; line-height: 1.45; }
.terms-row a { font-weight: 650; }
.verification-destination { margin: 18px 0; border-radius: 8px; background: #eef4ff; padding: 12px; color: #334155; text-align: center; }
.verification-destination span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.verification-destination strong { font-size: 0.78rem; }
.verification-steps { display: grid; gap: 10px; margin: 18px 0; border-radius: 8px; background: #f8fafc; padding: 14px 16px; color: #475569; font-size: 0.72rem; line-height: 1.45; }
.verification-steps p { margin: 0; }
.verification-icon.success { background: #ecfdf5; color: #047857; }
.verification-icon.error { background: #fef2f2; color: #b91c1c; }
.legal-main { display: block; width: min(100% - 36px, 780px); margin: 0 auto; padding: 48px 0 72px; }
.legal-main h1 { margin: 0 0 8px; font-size: 2rem; }
.legal-main h2 { margin: 30px 0 8px; font-size: 1.05rem; }
.legal-main p, .legal-main li { color: #475569; font-size: 0.86rem; line-height: 1.7; }
.auth-footer { display: flex; min-height: 64px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #fff; padding: 0 max(24px, calc((100vw - 1280px) / 2)); color: var(--muted); font-size: 0.68rem; }
.auth-footer nav { display: flex; gap: 18px; }
.auth-footer a { text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .auth-header { min-height: 58px; padding-inline: 14px; }
  .auth-header nav a:first-child { display: none; }
  .auth-main { align-items: start; padding: 24px 14px; }
  .auth-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-footer { justify-content: center; padding-inline: 14px; }
  .auth-footer nav { display: none; }
}
.theme-toggle{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:0;cursor:pointer}.theme-toggle svg{width:17px;height:17px}
[data-theme="dark"]{color-scheme:dark;--ink:#e6edf7;--muted:#9aa9bd;--line:#28374c;--canvas:#0b1220}[data-theme="dark"] body{background:#0b1220;color:#e6edf7}[data-theme="dark"] .auth-header,[data-theme="dark"] .auth-footer,[data-theme="dark"] .auth-card{background:#111b2e;border-color:var(--line)}[data-theme="dark"] .auth-form input,[data-theme="dark"] .auth-secondary,[data-theme="dark"] .theme-toggle{background:#0e1829;border-color:#35465e;color:#e6edf7}[data-theme="dark"] .legal-main p,[data-theme="dark"] .legal-main li{color:#b0bdcd}
[data-theme="dark"] .auth-submit{background:#dbe7f5;border-color:#dbe7f5;color:#0b1220}[data-theme="dark"] .password-field button{background:#1b2940;color:#dce6f3}[data-theme="dark"] .account-icon,[data-theme="dark"] .account-notice,[data-theme="dark"] .verification-destination,[data-theme="dark"] .verification-steps{background:#182337;color:#c8d3e1}
