/* ============================================================
   管理后台登录页样式
   取自实际站点编译产物，按区块裁剪后保留原值
   ============================================================ */

:root {
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #34443a;
  background: #fff;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

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

button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #6d9671;
}

a:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #6d9671;
}

input:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #6d9671;
}

::selection {
  color: #233b31;
  background: #d9ead7;
}

#root {
  min-height: 100vh;
}

/* ---------- 通用元件 ---------- */

.eyebrow {
  color: #7e9884;
  letter-spacing: 1.25px;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 750;
  display: block;
}

.button {
  cursor: pointer;
  min-height: 36px;
  font: inherit;
  border: 1px solid transparent;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 620;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  display: inline-flex;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  color: #fff;
  background: #27513f;
}

.button-primary:hover:not(:disabled) {
  background: #1f4435;
}

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

.form-field {
  color: #526157;
  align-content: start;
  gap: 6px;
  font-size: 10px;
  font-weight: 620;
  display: grid;
}

.form-field input {
  color: #3e5145;
  width: 100%;
  min-height: 36px;
  font: inherit;
  background: #fff;
  border: 1px solid #e0e6df;
  border-radius: 5px;
  outline: 0;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 450;
}

.form-field input:focus {
  border-color: #8da991;
  box-shadow: 0 0 0 2px #eff5ed;
}

.form-field input::placeholder {
  color: #a9b1ab;
}

/* ---------- 登录页 ---------- */

.auth-screen {
  background: #f5f7ef;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-panel {
  background: #fff;
  border: 1px solid #e3e9df;
  border-radius: 8px;
  gap: 14px;
  width: min(100%, 390px);
  padding: 27px;
  display: grid;
  box-shadow: 0 10px 35px rgba(36, 61, 42, 0.06);
}

.auth-panel h1 {
  color: #2b4436;
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}

.auth-panel > p {
  color: #7d8b7e;
  overflow-wrap: anywhere;
  margin: -5px 0 3px;
  font-size: 11px;
  line-height: 1.7;
}

.auth-panel .form-field {
  gap: 7px;
}

.auth-panel .button {
  width: 100%;
  min-height: 39px;
}

.auth-panel .auth-help {
  color: #88958a;
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.auth-panel .auth-help.is-error {
  color: #bd7354;
}

/* 输入校验态：与原站一致的克制表达 */
.form-field input.is-invalid {
  border-color: #d9b6a6;
  box-shadow: 0 0 0 2px #faf1ec;
}
