/* 独立登录 / 注册页 */

.auth-wrap {
  max-width: 460px;
  margin: 48px auto 64px;
  padding: 0 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.auth-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.auth-tab:hover { color: var(--primary); text-decoration: none; }
.auth-tab.is-active {
  color: var(--primary);
  background: var(--surface);
  border-bottom-color: var(--primary);
}

.auth-body { padding: 24px; }

.auth-alert {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .35);
  color: var(--accent-red);
  font-size: 13px;
}
.auth-alert ul { margin: 0; padding-left: 16px; }
.auth-alert ul li + li { margin-top: 4px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: block; }
.auth-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
}
.auth-field > em {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-style: normal;
  color: var(--text-faint);
}

.auth-captcha { display: flex; align-items: center; gap: 10px; }
.auth-captcha-q {
  flex-shrink: 0;
  padding: 8px 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  user-select: none;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
}

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 蜜罐字段：对人类不可见，但不用 display:none —— 部分机器人会跳过被隐藏的字段 */
.auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.auth-closed {
  text-align: center;
  padding: 16px 0 8px;
  color: var(--text-muted);
}
.auth-closed i { font-size: 32px; color: var(--text-faint); }
.auth-closed p { margin: 12px 0 18px; font-size: 14px; }

@media (max-width: 600px) {
  .auth-wrap { margin: 24px auto 40px; padding: 0 12px; }
  .auth-body { padding: 20px 16px; }
  .auth-form { gap: 14px; }
  .auth-field input[type="text"],
  .auth-field input[type="email"],
  .auth-field input[type="password"] { font-size: 16px; }
  /* 题干 + 输入框在窄屏放不下一行时换行，而不是压缩输入框 */
  .auth-captcha { flex-wrap: wrap; }
  .auth-captcha input[type="text"] { flex: 1; min-width: 130px; }
  .auth-row { flex-wrap: wrap; gap: 8px; }
  .auth-tab { font-size: 14px; padding: 12px 0; }
}
