/* finesse · register=product · soul=Botanical Herbarium Workbench · axes=A2-B2-C1-D2-E1 */
/* ==========================================================================
 * 云茶植保助手 · 2026 工业级登录页专属样式 (assets/login.css)
 * 架构：左栏宣纸白高专注认证区 (45%) + 右栏深林墨绿数字标本活体橱窗 (55%)
 * ========================================================================== */

#view-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(47, 158, 107, 0.09), transparent 42%),
    radial-gradient(circle at 86% 82%, rgba(95, 154, 72, 0.08), transparent 48%),
    linear-gradient(180deg, #F6F5F0 0%, #EFECE4 100%);
}
body.authed #view-login { display: none; }

.auth-card {
  width: 100%;
  max-width: 1060px;
  min-height: 550px;
  max-height: none;
  display: grid;
  grid-template-columns: 45fr 55fr;
  background: #FAF9F5;
  border-radius: 22px;
  border: 1px solid rgba(22, 34, 26, 0.09);
  box-shadow:
    0 28px 64px -16px rgba(18, 28, 22, 0.16),
    0 6px 20px -4px rgba(18, 28, 22, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* ---------------- 左栏：三段式黄金比例高专注认证区 ---------------- */
.auth-form {
  padding: 32px 42px 26px;
  background: linear-gradient(180deg, #FCFBF8 0%, #F7F6F1 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.auth-header { padding-bottom: 14px; border-bottom: 1px solid rgba(26, 36, 28, 0.07); }
.auth-brand { display: flex; align-items: flex-start; gap: 13px; }
.auth-seal {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2F9E6B 0%, #1B5E3F 100%);
  color: #FDFCF9;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -4px rgba(31, 110, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-title-row h1 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.025em; color: #162019; }
.auth-version-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 158, 107, 0.1);
  color: #1F6E4A;
  border: 1px solid rgba(47, 158, 107, 0.22);
  font-family: var(--tabular);
}
.auth-subtitle { margin: 4px 0 0; font-size: 12.5px; color: #546157; line-height: 1.4; }

/* 居中认证主区 */
.auth-main { margin: auto 0; padding: 2px 0; }
.auth-welcome { margin-bottom: 16px; }
.auth-welcome-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #287A54;
  margin-bottom: 5px;
  font-family: var(--tabular);
}
.auth-welcome-title { margin: 0 0 5px; font-size: 22px; font-weight: 750; letter-spacing: -0.025em; color: #162019; line-height: 1.2; }
.auth-welcome-desc { margin: 0; font-size: 13px; color: #5A675D; line-height: 1.45; }

/* 工业级表单输入组 */
.auth-field-group { margin-bottom: 16px; }
.auth-field-label { display: block; font-size: 12.5px; font-weight: 650; color: #1F2B23; margin-bottom: 7px; letter-spacing: -0.01em; }
.auth-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  background: #F2F0EA;
  border: 1px solid rgba(26, 38, 30, 0.12);
  border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(20, 28, 22, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-input-box:hover { border-color: rgba(31, 110, 74, 0.28); }
.auth-input-box:focus-within {
  background: #FCFBF9;
  border-color: #28885B;
  box-shadow: 0 0 0 3.5px rgba(47, 158, 107, 0.16), 0 2px 6px rgba(20, 28, 22, 0.04);
}
.auth-input-icon { width: 17px; height: 17px; color: #6C7A70; flex-shrink: 0; transition: color 0.18s ease; }
.auth-input-box:focus-within .auth-input-icon { color: #237A52; }
.auth-input-box input { flex: 1; border: none; background: transparent; font: inherit; font-size: 14px; color: #162019; outline: none; min-width: 0; }
.auth-input-box input::placeholder { color: #849187; }
.auth-pwd-toggle {
  border: none;
  background: transparent;
  color: #6C7A70;
  cursor: pointer;
  padding: 5px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: color 0.15s, background 0.15s;
}
.auth-pwd-toggle:hover { color: #162019; background: rgba(22, 32, 25, 0.06); }

/* 辅助行：免登录与忘记密码 */
.auth-meta-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 20px; font-size: 12.5px; }
.auth-remember { display: inline-flex; align-items: center; gap: 7px; color: #4D5950; cursor: pointer; user-select: none; }
.auth-remember input { accent-color: #268458; width: 15px; height: 15px; cursor: pointer; }
.auth-help-link { border: none; background: none; color: #216E49; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
.auth-help-link:hover { text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  height: 46px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 11px;
  border: 1px solid rgba(22, 92, 58, 0.4);
  background: linear-gradient(180deg, #35B276 0%, #248858 100%);
  color: #FDFCF9;
  box-shadow: 0 10px 22px -6px rgba(36, 136, 88, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-auth-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -6px rgba(36, 136, 88, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-auth-submit:active { transform: translateY(0); }

/* 内控安全合规印记条 */
.auth-trust-strip {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(36, 136, 88, 0.05);
  border: 1px dashed rgba(36, 136, 88, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #4E5E53;
}
.auth-trust-item { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.auth-trust-item svg { color: #268458; }
.auth-trust-sep { color: rgba(78, 94, 83, 0.45); }

/* 底部环境连接预检条 */
.auth-env-bar {
  padding-top: 14px;
  border-top: 1px solid rgba(26, 36, 28, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #546157;
}
.auth-env-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #EFECE5;
  border: 1px solid rgba(26, 36, 28, 0.1);
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  color: #3D4A40;
  transition: border-color 0.2s, background 0.2s;
}
.auth-env-pill:hover { border-color: rgba(47, 158, 107, 0.4); background: #E7F2EC; }
.auth-env-dot { width: 7px; height: 7px; border-radius: 50%; background: #28885B; box-shadow: 0 0 0 3px rgba(40, 136, 91, 0.2); }
.auth-env-pill.offline .auth-env-dot { background: var(--warning); box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.22); }
.auth-standard-tag { font-family: var(--tabular); font-size: 11px; font-weight: 600; color: #6B786E; white-space: nowrap; }

/* ---------------- 右栏：深林墨绿活体数字标本橱窗 ---------------- */
.auth-deco {
  background-color: #111914;
  background-image:
    radial-gradient(circle at 84% 16%, rgba(62, 197, 131, 0.22), transparent 46%),
    radial-gradient(circle at 14% 88%, rgba(124, 179, 88, 0.15), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
  color: #F4F6F3;
  padding: 36px 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
}

.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B8D4A8;
  background: rgba(184, 212, 168, 0.1);
  border: 1px solid rgba(184, 212, 168, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 12px;
}
.showcase-hero h2 { margin: 0 0 8px; font-size: 26px; font-weight: 750; letter-spacing: -0.025em; color: #FDFCF9; }
.showcase-hero p { margin: 0; font-size: 13px; color: rgba(244, 246, 243, 0.74); line-height: 1.6; }

/* 活体数字标本毛玻璃预览卡 */
.showcase-specimen-card {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px -8px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.specimen-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 11px; }
.specimen-card-title { font-size: 17px; font-weight: 700; color: #FDFCF9; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.specimen-card-latin { font-size: 12.5px; font-style: italic; font-weight: 400; color: #B8D4A8; }
.specimen-ai-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(62, 197, 131, 0.18);
  color: #6CE5A6;
  border: 1px solid rgba(62, 197, 131, 0.35);
  white-space: nowrap;
}
.specimen-taxo-chain {
  font-size: 11.5px;
  color: rgba(244, 246, 243, 0.78);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 11px;
  font-family: var(--tabular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.specimen-meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.specimen-meta-pill { font-size: 11px; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: rgba(253, 252, 249, 0.88); }
.specimen-meta-pill.warn { background: rgba(212, 168, 67, 0.2); color: #F3CA6B; }
.specimen-readiness-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  color: rgba(244, 246, 243, 0.72);
}
.specimen-switcher-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.specimen-dot-btn {
  padding: 2.5px 8.5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.specimen-dot-btn.active,
.specimen-dot-btn:hover { background: rgba(62, 197, 131, 0.22); color: #FDFCF9; border-color: #3EC583; }

/* 底部双列 Bento 馆藏指标微卡：杜绝孤字折行 */
.showcase-bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.showcase-bento-item { padding: 13px 15px; border-radius: 13px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.085); }
.bento-metric-val {
  font-size: 17px;
  font-weight: 750;
  color: #FDFCF9;
  font-family: var(--tabular);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.25;
}
.bento-metric-pill,
.bento-metric-val span {
  font-size: 11px;
  font-weight: 600;
  color: #6CE5A6;
  background: rgba(62, 197, 131, 0.14);
  border: 1px solid rgba(62, 197, 131, 0.26);
  padding: 1.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.bento-metric-desc { font-size: 11.5px; color: rgba(244, 246, 243, 0.62); margin-top: 5px; line-height: 1.4; }

@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; max-width: 480px; min-height: auto; }
  .auth-deco { display: none; }
}
