/* ============================================================
   StepScore · login.css
   真实登录页：与主界面共用墨绿/陶土设计令牌
   ============================================================ */

#app[hidden],
#login-screen[hidden],
#password-screen[hidden] { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(900px 620px at 8% 0%, rgba(14, 107, 87, 0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(194, 118, 44, 0.10), transparent 60%),
    var(--bg);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  color: #f6f1e6;
  background:
    radial-gradient(680px 420px at 92% 8%, rgba(194, 118, 44, .42), transparent 62%),
    linear-gradient(150deg, #0a4f41 0%, #0e6b57 58%, #123f35 100%);
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(246, 241, 230, .18);
  border-radius: 50%;
  pointer-events: none;
}
.login-brand::before { width: 560px; height: 560px; right: -220px; top: -200px; }
.login-brand::after { width: 360px; height: 360px; right: -80px; bottom: -180px; }

.login-brand > * { position: relative; z-index: 1; }

.login-brand-top { display: flex; align-items: center; gap: 12px; }
.login-brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(246, 241, 230, .12);
  border: 1px solid rgba(246, 241, 230, .22);
}
.login-brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.login-brand-name em { font-style: normal; color: #f6f1e6; font-weight: 800; }
.login-brand-sub { margin-top: 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f6f1e6; opacity: 1; }

.login-brand-body { margin-top: auto; margin-bottom: auto; padding: 46px 0 38px; }
.login-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #f6f1e6; font-weight: 700;
}
.login-kicker::before { content: ""; width: 26px; height: 1px; background: #e7b77e; opacity: .7; }
.login-title { margin: 18px 0 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; color: #f6f1e6; }
.login-title em { font-style: normal; color: #efc38d; }
.login-copy { margin: 18px 0 0; max-width: 430px; color: #f6f1e6; font-size: 14px; line-height: 1.9; }
.login-principles { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 430px; }
.login-principles li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #f6f1e6; }
.login-principles b { color: #f6f1e6; font-weight: 650; }
.login-principles .dot { width: 7px; height: 7px; border-radius: 50%; background: #e7b77e; margin-top: 7px; flex: 0 0 auto; }
.login-brand-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(246, 241, 230, .14); font-size: 11px; color: #f6f1e6; }

.login-panel { padding: 54px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.login-panel-kicker { font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.login-panel h2 { margin: 10px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: -.03em; }
.login-panel-copy { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.login-form { margin-top: 28px; display: grid; gap: 16px; }
.login-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-wrap .login-field-ico { position: absolute; left: 13px; color: var(--ink-4); pointer-events: none; display: flex; }
.login-input {
  width: 100%; height: 46px; padding: 0 14px 0 40px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13.5px;
  outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.login-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.login-input::placeholder { color: var(--ink-4); }
.login-error { padding: 10px 12px; border-radius: var(--r-sm); background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); font-size: 12px; line-height: 1.6; }
.login-submit { height: 46px; border: 0; border-radius: var(--r-sm); background: var(--brand); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s var(--ease), transform .18s var(--ease); }
.login-submit:hover { background: var(--brand-deep); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-divider { margin: 26px 0 0; display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-demo { margin-top: 18px; min-height: 74px; }
.login-demo-title { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.login-demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.login-demo-chip { text-align: left; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 10px 12px; cursor: pointer; font: inherit; transition: border-color .18s var(--ease), background .18s var(--ease); }
.login-demo-chip:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.login-demo-chip b { display: block; font-size: 12.5px; color: var(--ink); }
.login-demo-chip span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-4); }
.login-demo-hint { margin-top: 9px; font-size: 10.5px; color: var(--ink-4); line-height: 1.7; }
.login-demo-hint code { font-family: var(--mono); color: var(--ink-3); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.login-panel-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-4); font-size: 10.5px; line-height: 1.7; }

.password-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
}
.password-card {
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
#password-title { margin: 10px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: -.03em; }
.password-hint { margin: 0 0 12px; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.password-status {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--amber-soft, #f8f1e4);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.password-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.password-actions .login-submit { flex: 1 1 160px; }
.password-actions .btn { flex: 1 1 120px; height: 42px; }
@media (max-width: 420px) {
  .login-screen { padding: 10px; }
  .login-brand { padding: 22px 16px; min-height: 0; }
  .login-panel { padding: 22px 16px 24px; }
  .login-panel h2 { font-size: 24px; }
  .password-screen { padding: 10px; }
  .password-card { padding: 20px 14px 16px; border-radius: 16px; }
  .password-actions .login-submit,
  .password-actions .btn { flex-basis: 100%; }
}

@media (max-width: 900px) {
  .login-screen { padding: 14px; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .login-brand { padding: 30px 28px; min-height: 260px; }
  .login-brand-body { padding: 30px 0 20px; }
  .login-title { font-size: 30px; }
  .login-copy { font-size: 12.5px; margin-top: 12px; }
  .login-principles { display: none; }
  .login-brand-foot { display: none; }
  .login-panel { padding: 32px 26px 36px; }
}
