/* TODO::2026-09-10,(一文成片用户后台登录页与全局基础样式：统一为浅奶油与深松绿/薄荷绿视觉系统) */
:root {
  color-scheme: light;
  --cream: #f7f9f5;
  --cream-alt: #f0f4ee;
  --paper: #ffffff;
  --ink: #1b3227;
  --muted: #6a7c71;
  --faint: #97a69b;
  --line: #e1e7de;
  --green: #24684c;
  --green-hover: #1b533c;
  --green-dark: #143e2d;
  --green-light: #eaf3ed;
  --green-subtle: #d5e5db;
  --soft: #eef5ed;
  --accent: var(--green);
  --error: #b73e4a;
  --error-bg: #fdf2f3;
  --success: #237350;
  --success-bg: #eaf5ee;
  --shadow-sm: 0 2px 8px rgba(28, 52, 38, 0.04);
  --shadow-card: 0 8px 30px rgba(22, 48, 34, 0.06);
  --shadow-btn: 0 4px 14px rgba(36, 104, 76, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* ================= 登录页布局 ================= */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.12fr) minmax(420px, 1fr);
  background: var(--cream);
}

/* 左侧品牌视觉面板 */
.brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(67, 163, 122, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(31, 88, 63, 0.45) 0%, transparent 50%),
    linear-gradient(155deg, #184433 0%, #1c523d 50%, #123326 100%);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-center {
  margin: 40px 0;
}

.brand-panel .eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: #8ed6b4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f6fdf9;
}

.brand-panel h1 span {
  color: #85d5b0;
}

.brand-copy {
  max-width: 480px;
  margin: 22px 0 0;
  color: #c4ded1;
  font-size: 16px;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-list span {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #e3f2ea;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* 右侧表单区域 */
.login-panel {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: var(--cream);
}

.login-card {
  width: min(440px, 100%);
  padding: 44px 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.login-card .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.login-card h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Tab 切换栏 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 24px;
}

.tab {
  position: relative;
  border: 0;
  background: none;
  padding: 10px 2px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.tab.is-active {
  color: var(--green);
  font-weight: 700;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

/* 表单字段与输入框 */
#loginForm label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #3d5045;
  font-size: 13px;
  font-weight: 600;
}

#loginForm input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #dce3db;
  border-radius: var(--radius-md);
  outline: none;
  background: #fbfdfa;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#loginForm input::placeholder {
  color: #a7b5ac;
}

#loginForm input:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(36, 104, 76, 0.12);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.code-row button {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--green-subtle);
  border-radius: var(--radius-md);
  color: var(--green);
  background: var(--green-light);
  font-size: 13px;
  font-weight: 650;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.code-row button:hover:not(:disabled) {
  background: #d8ecdf;
  color: var(--green-dark);
  border-color: #b7d6c5;
}

.code-row button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 主提交按钮 */
.primary-button {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(145deg, #2a7356, #216147);
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(145deg, #22644a, #1a523b);
  box-shadow: 0 6px 18px rgba(36, 104, 76, 0.28);
}

.primary-button:active:not(:disabled) {
  transform: scale(0.99);
}

.primary-button:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  padding: 10px 18px;
  border: 1px solid #dce7da;
  border-radius: var(--radius-md);
  color: #4a6f52;
  background: #f6f9f2;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}

.secondary-button:hover:not(:disabled) {
  background: #edf5e8;
  border-color: #c7dbc1;
}

/* 提示与免责 */
.form-message {
  min-height: 22px;
  margin: 10px 0;
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--success);
}

.agreement {
  margin: 22px 0 0;
  text-align: center;
  color: #8fa094;
  font-size: 12px;
  line-height: 1.6;
}

/* 兼容保留样式类名 */
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

/* 移动端响应式 */
@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 260px;
    padding: 36px 24px;
    gap: 20px;
  }

  .brand-center {
    margin: 12px 0;
  }

  .brand-panel h1 {
    font-size: 30px;
  }

  .brand-copy {
    font-size: 14px;
    margin-top: 12px;
  }

  .login-panel {
    padding: 24px 18px 44px;
  }

  .login-card {
    padding: 28px 20px 24px;
    box-shadow: var(--shadow-sm);
  }
}

