/* 认证页样式 */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f6f7f9;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 34px 32px 28px;
  box-shadow: 0 4px 24px rgba(16, 24, 40, .06);
}

.auth-logo {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 26px;
}

/* Tab 切换 */
.auth-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.auth-tab.on {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.af { margin-bottom: 16px; }
.af label {
  display: block;
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 6px;
}
.af input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #d9dde3;
  border-radius: 9px;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
}
.af input:focus {
  outline: none;
  border-color: #2563eb;
}
.af input::placeholder { color: #d1d5db; }

.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex-shrink: 0; width: 108px; }

/* 状态条 */
.auth-note {
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-note.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.auth-note.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-note.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* 链接行 */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 13px;
}

/* 主操作按钮下方留白，避免与链接行紧贴 */
#btn-auth-submit { margin-bottom: 4px; }
.auth-link { color: #2563eb; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-link.mute { color: #9ca3af; }

/* 分隔 */
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: #d1d5db;
  font-size: 12px;
}
.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8eaed;
}

.auth-alt {
  width: 100%;
  height: 42px;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.auth-alt:hover { background: #f9fafb; }

.auth-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* 登录方式分段控件（密码登录 / 验证码登录） */
.seg {
  display: flex;
  background: #f3f4f6;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 16px;
}
.seg-item {
  flex: 1;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 7px;
  font-size: 13.5px;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.seg-item.on {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}