/* 登录页样式（复用 theme.css 品牌变量） */

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 480px at 50% -220px, var(--brand-glow), transparent 68%),
    radial-gradient(700px 420px at 100% 110%, rgba(12, 158, 112, 0.06), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--brand-soft-strong); color: var(--text-strong); }

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-top {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.auth-brand img { height: 36px; width: auto; display: block; }
.auth-brand small {
  margin-left: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.auth-secure {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  font-size: 11.5px;
  white-space: nowrap;
}

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 20px 40px;
}

.auth-card {
  width: min(92vw, 430px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
}

.auth-card h1 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

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

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  background: var(--danger-soft);
  color: #b91c1c;
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-error svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-form { display: block; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.auth-field span {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-strong);
  font: 16px/1.4 var(--font);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-field input::placeholder { color: var(--text-faint); }

.auth-field input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-soft-strong);
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 1px solid var(--brand-primary);
  border-radius: 11px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font: 650 15px/1 var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.auth-submit:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.auth-submit:active { transform: translateY(1px); }

.auth-hint {
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}

.auth-success {
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  font-size: 12.5px;
  line-height: 1.6;
}

.auth-link-row { margin: 12px 0 0; font-size: 13px; }

.auth-link {
  color: var(--brand-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-foot {
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}

.auth-dot { opacity: 0.5; }

@media (max-width: 430px) {
  .auth-top { padding-left: 16px; padding-right: 16px; }
  .auth-main { padding: 20px 14px 32px; }
  .auth-card { padding: 22px; border-radius: 18px; }
  .auth-card h1 { font-size: 23px; }
  .auth-brand img { height: 32px; }
  .auth-brand { font-size: 16px; }
  .auth-brand small { display: none; }
  .auth-secure { display: none; }
}
