/* ===== 잠금 화면 / 로그인 ===== */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  color: #fff;
  user-select: none;
  overflow: hidden;
  background: #0f4a7f;
  opacity: 1;
  transition: opacity 500ms ease;
}

.lock-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.lk-bg {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(0, 0, 0, 0.25), transparent 55%),
    linear-gradient(135deg, #0b3d6b 0%, #145a9c 45%, #1c7ac4 100%);
  transition: filter 400ms ease, transform 400ms ease;
}

.lock-screen.is-form .lk-bg {
  filter: blur(14px) brightness(0.75);
  transform: scale(1.04);
}

/* 잠금 화면 시계 */
.lk-clock {
  position: absolute;
  left: 48px;
  bottom: 80px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transition: opacity 300ms ease, transform 300ms ease;
}

.lock-screen.is-form .lk-clock {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

.lk-time {
  font-size: 96px;
  font-weight: 300;
  line-height: 1;
}

.lk-date {
  font-size: 28px;
  font-weight: 300;
  margin-top: 8px;
}

/* 로그인 양식 */
.lk-form {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease 120ms, transform 300ms ease 120ms;
}

.lock-screen.is-form .lk-form {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.lk-form.is-shaking {
  animation: lk-shake 320ms ease;
}

@keyframes lk-shake {
  0%, 100% { margin-left: 0; }
  20%, 60% { margin-left: -8px; }
  40%, 80% { margin-left: 8px; }
}

.lk-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7fc1, #8fc3ff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

.lk-name {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.lk-input-row {
  display: flex;
  width: 100%;
}

.lk-input {
  flex: 1 1 auto;
  height: 32px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-right: none;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.lk-input:focus {
  border-color: #fff;
}

.lk-submit {
  width: 34px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-left: none;
  background: #4a7fc1;
  color: #fff;
  font-size: 16px;
  cursor: default;
}

.lk-submit:hover {
  background: #5b90d2;
}

.lk-error {
  margin-top: 12px;
  min-height: 18px;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lk-hint {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 모니터에 붙은 포스트잇 */
.lk-sticky {
  position: absolute;
  right: 36px;
  bottom: 60px;
  width: 170px;
  min-height: 150px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #fff17a, #f2d94a);
  color: #2b2b2b;
  font-family: "Segoe Print", "Comic Sans MS", "Malgun Gothic", cursive;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-line;
  transform: rotate(-4deg);
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.45);
}

.lk-sticky::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 720px) {
  .lk-clock { left: 24px; bottom: 48px; }
  .lk-time { font-size: 64px; }
  .lk-date { font-size: 20px; }
  .lk-form { width: 260px; }
  .lk-sticky { right: 16px; bottom: 24px; width: 140px; font-size: 13px; }
}
