/**
 * 会员登录页：三页签 + 验证码免密登录 + 快捷登录
 *
 * 三套主题共用这一份样式，靠 CSS 变量跟随主题：
 *   --ro-primary  主色（各主题 :root 里指向自己的品牌色）
 *   --radius      圆角（aurum 2px / enterprise 4px / default 无 → 8px）
 * 必须在主题 CSS 之后引入，才能盖住 .auth-btn / .auth-field 的默认态。
 */

.auth-box,
.lt-scope {
  --lt-primary: var(--ro-primary, #2563eb);
  --lt-line: #e5e7eb;
  --lt-muted: #9ca3af;
  --lt-radius: var(--radius, 8px);
  --lt-ctl: 40px;   /* 验证码那一行的高度，各主题按自己的输入框高度覆盖 */
}

/* ---------------- 图形验证码 / 短信验证码行 ---------------- */
/* 结构由 Member::captchaHtml() / smsHtml() 输出，三套主题共用，避免各写一份 */
.auth-box .auth-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-box .auth-captcha input { flex: 1; min-width: 0; }

.auth-box .auth-captcha .cap-img,
.auth-box .auth-captcha .cap-q {
  flex: 0 0 auto;
  height: var(--lt-ctl);
  width: auto;
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius);
}

.auth-box .auth-captcha .cap-img { cursor: pointer; }

.auth-box .auth-captcha .cap-q {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1px;
  color: var(--lt-primary);
}

.auth-box .auth-captcha .sms-btn {
  flex: 0 0 108px;
  height: var(--lt-ctl);
  padding: 0 8px;
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius);
  background: #fff;
  color: var(--lt-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.auth-box .auth-captcha .sms-btn:hover:not(:disabled) { border-color: var(--lt-primary); }
.auth-box .auth-captcha .sms-btn:disabled { color: var(--lt-muted); cursor: default; }

/* ---------------- 页签 ---------------- */
.lt-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 20px;
  background: #f3f4f6;
  border-radius: var(--lt-radius);
}

.lt-tab {
  flex: 1;
  height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  border-radius: calc(var(--lt-radius) - 2px);
  color: #6b7280;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
}

.lt-tab:hover { color: var(--lt-primary); }

.lt-tab.is-active {
  background: #fff;
  color: var(--lt-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .1);
}

/* ---------------- 面板 ---------------- */
.lt-panel { display: none; }
.lt-panel.is-active { display: block; }

/* 验证码行：输入框 + 获取按钮 */
.lt-code { display: flex; gap: 10px; align-items: stretch; }
.lt-code input { flex: 1; min-width: 0; }

.lt-send {
  flex: 0 0 112px;
  padding: 0 8px;
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius);
  background: #fff;
  color: var(--lt-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s, color .18s, opacity .18s;
  white-space: nowrap;
}

.lt-send:hover:not(:disabled) { border-color: var(--lt-primary); }

/* 账号没填对之前保持灰色：灰底 + 浅灰字，和置灰的登录按钮同一套语言 */
.lt-send:disabled {
  background: #f3f4f6;
  border-color: var(--lt-line);
  color: #b4bcc8;
  cursor: not-allowed;
}

/* 行内提示：错误红字，成功灰字 */
.lt-err {
  margin: -4px 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #d64541;
  min-height: 0;
}

.lt-err:empty { display: none; }
.lt-err.is-ok { color: #2f9e5b; }

/* ---------------- 按钮置灰 ---------------- */
.auth-btn:disabled,
.auth-btn:disabled:hover,
.auth-btn[disabled] {
  background: #e6e9ef;
  color: #8f97a4;
  border-color: #e6e9ef;
  cursor: not-allowed;
}

/* ---------------- 快捷登录 ---------------- */
.lt-oauth { margin-top: 24px; }

.lt-oauth__t {
  position: relative;
  margin-bottom: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--lt-muted);
}

.lt-oauth__t::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--lt-line);
}

.lt-oauth__t span {
  position: relative;
  padding: 0 12px;
  background: #fff;
}

.lt-oauth__list {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.lt-oauth__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lt-line);
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  font-size: 19px;
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s;
}

.lt-oauth__btn:hover {
  color: var(--lt-primary);
  border-color: var(--lt-primary);
  transform: translateY(-1px);
}

/* ---------------- 窄屏 ---------------- */
@media (max-width: 480px) {
  .lt-tab { font-size: 12.5px; padding: 0 4px; }
  .lt-send { flex-basis: 96px; font-size: 12.5px; }
}
