/* Lock screen: dark, Windows 11 style, over a real photo of Maya Bay (Ko Phi Phi).
   Stage 1 shows the clock; any click or key "unlocks" into the sign-in panel. */
body.lock-page {
  --text: #fff;
  --muted: rgba(255, 255, 255, .78);
  --accent: #4cc2ff;
  margin: 0; height: 100vh; overflow: hidden; color: #fff; background: #0b1a26; color-scheme: dark;
  font-family: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; display: block;
}
.lock-bg {
  position: fixed; inset: -2%; background: #0b1a26 url(/img/login-beach.jpg) center 58% / cover no-repeat;
  transition: filter .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
  animation: lock-zoom 40s ease-in-out infinite alternate;
}
@keyframes lock-zoom { to { transform: scale(1.05); } }
/* Dark theme: a deep navy/black wash, stronger at the top and bottom. */
.lock-shade {
  position: fixed; inset: 0; pointer-events: none; transition: background .6s;
  background: linear-gradient(180deg, rgba(4, 10, 20, .62) 0%, rgba(4, 12, 24, .28) 38%, rgba(4, 12, 24, .2) 60%, rgba(2, 8, 16, .72) 100%);
}
body.unlocked .lock-bg { filter: blur(26px) brightness(.62) saturate(1.1); }
body.unlocked .lock-shade { background: rgba(6, 12, 22, .38); }

.lock { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
.lock-clock {
  position: absolute; left: 0; right: 0; top: 11vh; text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
  transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1);
}
.lock-date { font-size: clamp(18px, 1.9vw, 24px); font-weight: 500; letter-spacing: .01em; }
.lock-time { font-size: clamp(88px, 12vw, 150px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; margin-top: 2px; }
.lock-hint { margin-top: 40vh; font-size: 14px; color: rgba(255, 255, 255, .8); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .45; } }
body.unlocked .lock-clock { opacity: 0; transform: translateY(-60px); pointer-events: none; }

.lock-card {
  width: min(360px, 100%); display: grid; gap: 14px; justify-items: center;
  opacity: 0; transform: translateY(40px) scale(.98); pointer-events: none;
  transition: opacity .45s .1s, transform .55s .1s cubic-bezier(.2, .8, .2, 1);
}
body.unlocked .lock-card { opacity: 1; transform: none; pointer-events: auto; }
.lock-avatar {
  width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-size: 48px; font-weight: 500;
}
.lock-name { margin: 0 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; text-align: center; }
.lock-card input {
  width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14.5px; color: #fff; border-radius: 6px;
  background: rgba(20, 26, 36, .62); border: 1px solid rgba(255, 255, 255, .16); border-bottom: 2px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); outline: none; box-shadow: none;
}
.lock-card input::placeholder { color: rgba(255, 255, 255, .7); }
.lock-card input:focus { background: rgba(10, 14, 22, .78); border-bottom-color: var(--accent); box-shadow: none; }
.pw-row { position: relative; width: 100%; }
.pw-row input { padding-right: 46px; }
.pw-row button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 32px; border: 0; border-radius: 4px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.pw-row button:hover { background: var(--accent); color: #002a40; }
.lock-card .error { margin: 0; min-height: 1.4em; font-size: 13.5px; color: #ffb4b4; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.lock-bar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 24px; font-size: 12.5px; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.lock-credit { color: inherit; text-decoration: none; opacity: .85; }
.lock-credit:hover { text-decoration: underline; opacity: 1; }
.lock-status { display: flex; align-items: center; gap: 8px; }
.lock-brand { margin-left: 14px; font-weight: 600; letter-spacing: .02em; }
.lock-brand b { color: var(--accent); }
@media (max-width: 600px) {
  .lock-hint { margin-top: 34vh; }
  .lock-bar { flex-direction: column; gap: 6px; padding: 12px 16px; }
  .lock-avatar { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .lock-bg { animation: none; } }
