/* ============================================================
 * 智联SaaS · 登录/注册 样式（auth.css）
 * ============================================================ */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px; color: #fff; }
.auth-aside canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.auth-aside .a-inner { position: relative; z-index: 2; max-width: 420px; }
.auth-aside .brand { font-size: 26px; margin-bottom: 36px; }
.auth-aside h1 { font-size: 38px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.auth-aside p { color: var(--on-dark-3); margin-top: 18px; font-size: 16px; line-height: 1.7; }
.auth-aside .a-points { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-aside .a-points div { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: 15px; }
.auth-aside .a-points svg { color: var(--indigo-3); flex: none; }

.auth-main { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { font-size: 24px; margin-bottom: 8px; }
.auth-card .brand-s { color: var(--text); }
.auth-card h2 { font-size: 28px; font-weight: 800; margin-top: 18px; }
.auth-card .sub { color: var(--text-3); margin-top: 8px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 15px; font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(94,106,210,.14); }
.field .err { color: #dc2626; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input { border-color: #dc2626; }
.field.invalid .err { display: block; }
.auth-card .btn { width: 100%; padding: 14px; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--text-3); font-size: 14px; }
.auth-alt a { color: var(--indigo); font-weight: 600; }
.auth-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(94,106,210,.08); color: var(--indigo); font-size: 13px; line-height: 1.6; }
.auth-banner { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: #FEF2F2; color: #b91c1c; font-size: 13.5px; display: none; }
.auth-banner.show { display: block; }
.back-home { position: absolute; top: 24px; left: 24px; color: rgba(255,255,255,.7); font-size: 13.5px; z-index: 3; }

/* P1 账号地基：邮箱验证码行 + 声明勾选框 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn-code { width: auto; margin-top: 0; flex: none; padding: 0 14px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--indigo); background: rgba(94,106,210,.08); border: 1.5px solid rgba(94,106,210,.25); border-radius: var(--r-sm); cursor: pointer; transition: background var(--t-fast); }
.code-row .btn-code:hover { background: rgba(94,106,210,.16); }
.code-row .btn-code:disabled { opacity: .55; cursor: not-allowed; }
.consent-row { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 4px; font-size: 12.8px; color: var(--text-3); line-height: 1.55; }
.consent-row input[type=checkbox] { width: 16px; height: 16px; flex: none; margin-top: 1px; accent-color: var(--indigo); cursor: pointer; }
.consent-row a { color: var(--indigo); font-weight: 600; }
.consent-row.invalid { color: #dc2626; }

@media (max-width: 860px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  /* 深色侧栏隐藏后，返回链接落在白色背景上，需要换成深色文字 */
  .back-home { top: 16px; left: 18px; color: var(--text-2, #4a5266); }
  .back-home:hover, .back-home:focus-visible { color: var(--indigo, #5e6ad2); }
}
