/* ================= 登录锁 ================= */
.lock-screen { display: none; }

body.locked .lock-screen {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(192, 96, 60, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(95, 115, 96, 0.25), transparent 55%),
    #1c2620;
}

body.locked .app,
body.locked .modal-overlay,
body.locked .drawer-overlay,
body.locked .toast {
  display: none !important;
}

.lock-card {
  width: min(360px, 100%);
  text-align: center;
  color: #f4f1e8;
}

.lock-card .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 32px;
  background: rgba(244, 241, 232, 0.08);
  border: 1px solid rgba(244, 241, 232, 0.16);
  margin-bottom: 18px;
}

.lock-card h1 {
  font-size: 26px;
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.lock-sub {
  color: rgba(244, 241, 232, 0.6);
  font-size: 14px;
  margin: 0 0 28px;
}

#loginForm { text-align: left; }

.lock-field { display: block; margin-bottom: 16px; }
.lock-field > span {
  display: block;
  font-size: 13px;
  color: rgba(244, 241, 232, 0.65);
  margin-bottom: 6px;
}

.lock-field input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 13px 14px;
  color: #f4f1e8;
  background: rgba(244, 241, 232, 0.07);
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 12px;
  outline: none;
}
.lock-field input:focus { border-color: #c0603c; }
.lock-field input::placeholder { color: rgba(244, 241, 232, 0.35); }

.lock-pass { position: relative; }
.lock-pass input { padding-right: 60px; }
.lock-pass button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(244, 241, 232, 0.6);
  font-size: 13px;
  padding: 8px;
  cursor: pointer;
}
.lock-pass button:hover { color: #f4f1e8; }

.lock-error {
  display: none;
  color: #eda488;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 10px;
}
.lock-error.show { display: block; }

.lock-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 6px;
}
.lock-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.lock-note {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.42);
}
