/* ============================================================
   auth.css — 登录 / 注册页
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
}

/* ── 顶部品牌 ── */
.auth-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  transition: opacity .2s var(--ease);
}
.auth-brand:hover { opacity: .8; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  color: #0b0f16;
  background: linear-gradient(135deg, var(--accent), #ff9a4d);
  box-shadow: 0 4px 14px -4px var(--accent-line, rgba(255, 107, 26, .5));
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--text-3);
  font-weight: 600;
}

/* ── 主区 ── */
.auth-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-card {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-xl, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}

/* ── 左侧宣传 ── */
.auth-side {
  position: relative;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 107, 26, .14), transparent 60%),
    linear-gradient(160deg, rgba(78, 205, 196, .06), transparent 55%),
    var(--panel-2, #0c111a);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-side-inner { position: relative; z-index: 2; }
.auth-side h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 0 0 12px;
}
.auth-side > .auth-side-inner > p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 30ch;
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}
.auth-points b { color: var(--accent); font-weight: 700; }
.pt-ico {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 107, 26, .12);
  border: 1px solid rgba(255, 107, 26, .22);
}
.pt-ico.c-accent { color: var(--accent); }

.auth-side-foot {
  margin-top: 30px;
  font-size: 11.5px;
  letter-spacing: .3px;
}

.auth-side-glow {
  position: absolute;
  width: 320px; height: 320px;
  right: -140px; bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, .16), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

/* ── 右侧表单 ── */
.auth-form-wrap {
  padding: 40px clamp(26px, 3.4vw, 42px) 34px;
  display: flex;
  flex-direction: column;
  background: var(--bg-2, #080c13);
}

/* Tabs */
.auth-tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  align-self: flex-start;
}
.auth-tab {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: color .25s var(--ease);
}
.auth-tab.active { color: var(--text); }
.auth-tabs .auth-tab:not(.active):hover { color: var(--text-2); }
.auth-tab-ink {
  position: absolute;
  z-index: 1;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  width: 60px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 107, 26, .22), rgba(255, 107, 26, .1));
  border: 1px solid rgba(255, 107, 26, .3);
  transition: transform .38s var(--ease-spring), width .38s var(--ease-spring);
}

/* 表单 */
.auth-form { animation: fadeUp .42s var(--ease) both; }
.auth-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 0 0 6px;
}
.auth-sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin: 0 0 24px;
}
.auth-sub b { color: var(--accent); }

.form-row { margin-bottom: 16px; }
.form-row.row-between { margin-bottom: 20px; }

.label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: .2px;
}

.field-wrap { position: relative; }
.field-wrap .field { padding-right: 44px; }

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* 密码强度 */
.pw-meter {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.pw-meter i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .09);
  transition: background .3s var(--ease);
}
.pw-meter i.on.s1 { background: var(--err); }
.pw-meter i.on.s2 { background: var(--warn); }
.pw-meter i.on.s3 { background: var(--ok); }

.field-hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin: 7px 0 0;
  transition: color .25s var(--ease);
}

/* 复选框 */
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.check-row input {
  appearance: none;
  width: 16px; height: 16px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid var(--line-2, rgba(255, 255, 255, .18));
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  position: relative;
  transition: all .2s var(--ease);
}
.check-row input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-row input:checked::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 1px;
  width: 4px; height: 8px;
  border: solid #0b0f16;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.check-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-lg { padding: 12px 20px; font-size: 14.5px; margin-top: 4px; }

.auth-switch {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin: 18px 0 0;
}
.link-inline {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.link-inline:hover { opacity: .75; text-decoration: underline; }

/* ── 响应式 ── */
@media (max-width: 820px) {
  .auth-card { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 34px 26px 30px; }
}
@media (max-width: 420px) {
  .auth-body { padding: 20px 14px 28px; }
  .auth-tabs { width: 100%; }
  .auth-tab { flex: 1; padding: 8px 0; text-align: center; }
}
