/* 都聊 · 登录 / 注册 / 重置密码（App 与 Web 共用，配合 js/auth-kit.js）
 *
 * 只管卡片本身：品牌、输入行、验证码按钮、按钮、错误提示、底部链接、服务器那一行。
 * 外层背景各端自己管：App 是 .auth（铺满屏幕），Web 是 .login-screen（居中卡片）。
 */

.auth-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- 品牌 */

.auth-brand {
  margin-bottom: 26px;
  text-align: center;
}

.auth-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(255, 92, 122, 0.35);
}

.auth-brand h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 1px;
  /* 和宣传页大标题一样的粉橙渐变字 */
  background: linear-gradient(120deg, var(--accent, #ff5c7a) 10%, #ff8a5c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-slogan {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- 表单 */

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

.auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 14px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--card, var(--bg-2, #fff));
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field:focus-within {
  border-color: transparent;
  box-shadow: var(--focus-ring, 0 0 0 2px var(--accent));
}

.auth-label {
  flex: none;
  width: 3.5em;
  font-size: 14px;
  color: var(--text-2);
}

.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

/* 账号格式不对 / 已被注册时的红字 */
.auth-hint {
  margin: -6px 4px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--red, var(--danger, #ff3b30));
}

/* 验证码一行：输入框 + 右边的「获取验证码」 */
.auth-code input {
  flex: 1;
}

.auth-code-btn {
  flex: none;
  height: 26px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 0.5px solid var(--line);
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.auth-code-btn:disabled {
  color: var(--text-3, var(--text-2));
  cursor: default;
}

.auth-agree {
  margin: 4px 2px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.auth-agree label {
  display: inline;
  cursor: pointer;
}

.auth-agree input {
  width: 15px;
  height: 15px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: var(--accent);
}

.auth-agree button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.auth-icon[data-action="dev-tap"] {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.auth-submit {
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(255, 92, 122, 0.28);
  cursor: pointer;
  transition: transform 0.12s, opacity 0.15s;
}

.auth-submit:active {
  transform: scale(0.985);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 错误提示（红色）；打开页面时的说明（比如「登录已失效」）是普通颜色 */
.auth-error {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: var(--red, var(--danger, #ff3b30));
}

.auth-error.info {
  color: var(--text-2);
}

.auth-error:empty {
  min-height: 0;
  margin-top: -12px;
}

/* ---------------------------------------------------------------- 底部 */

.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
}

.auth-switch button,
.auth-server button {
  margin-left: 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.auth-link {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.auth-server {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
}

.auth-server button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 400;
}

.auth-server svg {
  flex: none;
}
