@charset "utf-8";

/* h5-common.css — auth 页面共用公共样式（从 styles.css 抽出）
   版本：h5-common-20260706
   说明：仅包含 login.html / change-password.html / two-factor.html 实际用到的公共样式。
   其余 5 个 H5 页面仍引用全量 styles.css，未受影响。 */

:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #15211d;
  --muted: #66746e;
  --line: #dbe3df;
  --brand: #0f766e;
  --brand-2: #155e75;
  --ink: #102a2a;
  --gold: #a16207;
  --danger: #b42318;
  --warning: #b54708;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --soft-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

button,
input,
select {
  font: inherit;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b9d, #8b5cf6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  cursor: pointer;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: #0b625c;
}

.ghost-button {
  background: #fff;
  color: var(--text);
}

.ghost-button:hover {
  border-color: #bdcbc6;
  background: #f8fbfa;
}

.compact {
  min-height: 34px;
}

.muted-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 28px));
  border-radius: 8px;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 680px) {
  h1 {
    font-size: 23px;
  }
}
