/* lockscreen.css — 锁屏与登录（纯黑极简：左上登录区 + 右下大时钟） */
#lockscreen {
  position: fixed; inset: 0; z-index: 10000;
  color: #fff; overflow: hidden;
  background: #000;
  --ls-green: #2D5936;
  --ls-green-hover: #3A6E45;
}
.ls-brand {
  position: absolute; top: 36px; right: 46px;
  font-size: 13px; font-weight: 600; letter-spacing: .55em; opacity: .35;
  user-select: none;
}

.ls-panel {
  position: absolute; top: 13vh; left: 8vw;
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: min(420px, 86vw);
}
#login-users { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: min(360px, 78vw); max-height: 64vh; overflow-y: auto; }
.lu-title { font-size: 12px; letter-spacing: .4em; opacity: .45; margin-bottom: 16px; user-select: none; }
.lu-msg { font-size: 13px; opacity: .6; padding: 8px 2px; }
.login-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; color: #fff; text-align: left;
  border: 1px solid transparent; border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.login-user:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.login-user > svg { opacity: .35; transition: opacity .15s, transform .15s; }
.login-user:hover > svg { opacity: .9; transform: translateX(2px); }
.lu-avatar { display: flex; flex: none; }
.lu-account { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.lu-name { overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lu-username { overflow: hidden; font-size: 11px; opacity: .45; text-overflow: ellipsis; white-space: nowrap; }

#login-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#login-account { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.login-account-text { min-width: 0; }
#login-name { max-width: min(290px, 56vw); overflow: hidden; font-size: 30px; font-weight: 400; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
#login-username { margin-top: 5px; font-size: 12px; opacity: .48; }
#login-sub { font-size: 13px; opacity: .65; min-height: 17px; }
.pw-row { position: relative; width: min(320px, 78vw); margin-top: 8px; }
#login-pw {
  width: 100%; padding: 10px 44px 10px 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px;
  outline: none; color: #fff; font-size: 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#login-pw::placeholder { color: rgba(255, 255, 255, .4); }
#login-pw:focus {
  border-color: var(--ls-green); background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(45, 89, 54, .4);
}
#login-go {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 28px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .65);
  transition: background .15s, color .15s;
}
#login-go:hover { background: var(--ls-green-hover); color: #fff; }
#login-err { color: #ff8f99; min-height: 18px; font-size: 13px; }
#login-back {
  color: rgba(255, 255, 255, .6); font-size: 13px; padding: 3px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
#login-back:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }

.ls-clock {
  position: absolute; right: 6vw; bottom: 8vh;
  text-align: right; user-select: none;
}
.ls-time-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
#lock-time {
  font-size: clamp(88px, 11vw, 148px); font-weight: 700; line-height: 1;
  font-family: "Segoe UI", var(--font);
  color: var(--ls-green);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
#lock-sec {
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 700;
  color: var(--ls-green); opacity: .55;
  font-variant-numeric: tabular-nums;
}
#lock-date {
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 400;
  color: var(--ls-green); opacity: .7; margin-top: 12px; letter-spacing: .08em;
}

.ls-in .ls-panel { animation: lsRise .55s cubic-bezier(.22, .9, .3, 1) both; }
.ls-in .ls-clock { animation: lsRise .55s .08s cubic-bezier(.22, .9, .3, 1) both; }
.ls-in .ls-brand { animation: lsFade .8s .2s both; }
@keyframes lsRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lsFade { from { opacity: 0; } }

@media (max-width: 640px) {
  .ls-panel { top: 9vh; left: 7vw; }
  .ls-clock { right: 7vw; bottom: 6vh; }
  .ls-brand { top: 24px; right: 28px; }
}

.fc-overlay {
  position: fixed; inset: 0; z-index: 10500;
  background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
}
.fc-box {
  width: 380px; max-width: 92vw;
  background: var(--win-bg); color: var(--win-fg);
  border: 1px solid var(--win-border); border-radius: 0;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5); overflow: hidden;
}
.fc-title { padding: 14px 16px 4px; font-size: 15px; font-weight: 600; }
.fc-body { padding: 6px 16px 14px; font-size: 13px; }
.fc-body input {
  width: 100%; margin-top: 10px; padding: 8px 10px;
  border: 1px solid var(--win-border); border-radius: 0;
  background: var(--win-bg); color: inherit; outline: none;
}
.fc-body input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fc-err { color: #E81123; font-size: 12px; min-height: 16px; margin-top: 6px; }
.fc-btns { display: flex; justify-content: flex-end; padding: 0 16px 16px; }
.fc-ok { min-width: 88px; padding: 7px 14px; border-radius: 0; background: var(--accent); color: #fff; }
.fc-ok:hover { background: var(--accent-hover); }
