/* 登录 / 注册 / 找回密码 —— 照 Figma「0-Login & Signup」:左边图片区 686px,右边表单宽 423px。 */
.auth { display: grid; grid-template-columns: minmax(0, 686fr) minmax(0, 754fr); min-height: 100dvh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; background: var(--brand-gradient); color: #fff; }
.auth-art::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 80%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
/* 跟顶栏同一个 AIDO LAB 整块标志(Figma 顶栏 Layer 3,13197:12526,原尺寸 108×29.84);标志是深色字,放在浅色圆角底上
   (Figma 顶栏也是浅灰 #F6F8FA 胶囊里放它),渐变底上看得清 */
.auth-logo { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; }
.auth-logo img { display: block; width: 108px; height: 29.84px; }
.auth-tagline { position: relative; z-index: 1; max-width: 420px; margin: 0 0 24px; font-size: var(--fs-h4);
  line-height: var(--lh-h4); font-weight: 600; letter-spacing: -0.02em; }
.auth-main { display: flex; justify-content: center; align-items: flex-start; padding: 128px 24px 48px; background: var(--surface); }
.auth-form { width: 100%; max-width: 423px; display: flex; flex-direction: column; }
.auth-head { text-align: center; margin-bottom: 48px; }
.auth-head h1 { margin: 0 0 12px; font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; letter-spacing: -0.02em; }
.auth-head p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--ink); }
.auth-head a, .link { color: var(--blue-500); text-decoration: underline; text-underline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--ink); }
.field input { height: 42px; width: 100%; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-input);
  background: var(--surface); font-size: var(--fs-sm); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--grey-400); }
.field input:hover { border-color: var(--grey-400); }
.field input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0;
  background: transparent; color: var(--grey-500); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.eye:hover { color: var(--ink); background: var(--grey-100); }
.eye svg { width: 18px; height: 18px; }
.forgot { align-self: flex-start; margin: -14px 0 36px; font-size: var(--fs-xs); color: var(--ink); text-decoration: underline; }
.form-dead { margin: 0 0 24px; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--red-500); text-align: center; }
.form-error { margin: -8px 0 16px; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--red-500); text-align: center; }
.form-note { margin: 0 0 24px; padding: 12px 14px; border-radius: var(--radius-input); background: var(--blue-100);
  color: var(--navy-500); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.btn-primary { height: 44px; width: 100%; border: 0; border-radius: var(--radius-pill); background: var(--brand-gradient);
  color: #fff; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: filter .15s, transform .16s cubic-bezier(.23,1,.32,1); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.or { display: flex; align-items: center; gap: 16px; margin: 56px 0; color: var(--muted); font-size: var(--fs-sm); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: flex; flex-direction: column; gap: 16px; }
.btn-social { height: 42px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--fs-sm);
  font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-social:hover { background: var(--grey-100); }
.btn-social svg { width: 18px; height: 18px; }
.terms { margin: 24px 0 0; font-size: 10px; line-height: 12px; color: var(--body); text-align: center; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: -20px 0 18px; }
.strength i { height: 8px; border-radius: 999px; background: var(--grey-100); transition: background .2s; }
.strength[data-score="1"] i:nth-child(-n+1), .strength[data-score="2"] i:nth-child(-n+2),
.strength[data-score="3"] i:nth-child(-n+3), .strength[data-score="4"] i { background: var(--blue-200); }
.back { width: 48px; height: 48px; margin-top: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.back:hover { background: var(--grey-100); }
.back svg { width: 18px; height: 18px; }
.center-link { margin-top: 24px; text-align: center; font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 160px; }
  .auth-tagline { font-size: var(--fs-h5); line-height: var(--lh-h5); margin: 16px 0 0; }
  .auth-main { padding: 40px 16px; }
  .auth-head { margin-bottom: 32px; }
  .or { margin: 32px 0; }
}
#signupAccount .field { margin-bottom: 34px; }
#signupAccount .form-error { margin: 0 0 36px; }

/* 后台网址(admin.app.aido.biz)上的登录 / 换密码页:跟后台同一套样子(深海军蓝侧栏、白色标志 +「Admin 后台」、浅灰底上的白卡片),
   一眼看得出不是用户那边的登录页。app.py 的 _admin_auth_html 给 body 加 class="auth-admin"。 */
.auth-admin .auth { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
.auth-admin .auth-art { justify-content: flex-start; gap: 14px; padding: 32px 32px; background: #0c1830; color: #c3cbdb; }
.auth-admin .auth-art::after { inset: auto -35% -25% auto; width: 90%; background: radial-gradient(circle, rgba(91,202,244,.16), transparent 68%); }
.auth-admin .auth-art::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; }
.auth-admin .auth-logo { padding: 0; border-radius: 0; background: transparent; }
.auth-badge { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #5bcaf4; background: rgba(91,202,244,.12); box-shadow: inset 0 0 0 1px rgba(91,202,244,.28); }
.auth-admin .auth-tagline { margin: auto 0 8px; max-width: 300px; font-size: 20px; line-height: 28px; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.auth-admin .auth-main { align-items: center; padding: 48px 24px; background: #f5f6f8; }
.auth-admin .auth-form { padding: 36px 36px 32px; border: 1px solid #e6eaef; border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(31,35,40,.04), 0 12px 32px -16px rgba(31,35,40,.18); }
.auth-admin .auth-head { text-align: left; margin-bottom: 28px; }
.auth-admin .auth-head h1 { font-size: 22px; line-height: 30px; }
.auth-admin .field input { border-radius: 8px; }
.auth-admin .field input:focus { border-color: #5bcaf4; box-shadow: 0 0 0 3px #d6f2fc; }
.auth-admin .btn-primary { border-radius: 8px; }
.auth-admin .forgot { margin-bottom: 28px; }
@media (max-width: 860px) {
  .auth-admin .auth { grid-template-columns: 1fr; }
  .auth-admin .auth-art { min-height: 0; flex-direction: row; align-items: center; padding: 18px 16px; }
  .auth-admin .auth-tagline { display: none; }
  .auth-admin .auth-form { padding: 24px 20px; }
}
