#login {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-4);
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lock-fs {
  position: fixed;
  top: calc(var(--space-3) + env(safe-area-inset-top, 0px));
  right: calc(var(--space-3) + env(safe-area-inset-right, 0px));
  z-index: 2;
}

.lock-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lock-blob { position: absolute; border-radius: 50%; will-change: transform; }
.lock-blob-1 {
  width: 340px; height: 340px; top: -90px; left: -110px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%);
  animation: lock-float-a 18s ease-in-out infinite alternate;
}
.lock-blob-2 {
  width: 400px; height: 400px; top: 32%; right: -150px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-hover) 30%, transparent), transparent 70%);
  animation: lock-float-b 24s ease-in-out infinite alternate;
}
.lock-blob-3 {
  width: 320px; height: 320px; bottom: -110px; left: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--text-muted) 26%, transparent), transparent 70%);
  animation: lock-float-c 30s ease-in-out infinite alternate;
}
@keyframes lock-float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(70px, 90px, 0) scale(1.2); }
}
@keyframes lock-float-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-90px, -70px, 0) scale(0.9); }
}
@keyframes lock-float-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(80px, -60px, 0) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .lock-blob { animation: none; }
}

.lock-clock {
  position: relative;
  z-index: 1;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.lock-time {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(56px, 20vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.lock-date {
  margin: var(--space-2) 0 0;
  font-size: var(--fs);
  color: var(--text-muted);
}

@media (max-height: 560px) {
  #login {
    gap: var(--space-3);
  }
  .lock-time {
    font-size: clamp(40px, 12vh, 64px);
  }
  .lock-date {
    margin-top: var(--space-1);
    font-size: var(--fs-sm);
  }
}

.login-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  text-align: center;
}

.login-error {
  margin: 0;
  color: var(--danger);
  font-size: var(--fs-sm);
  text-align: center;
  overflow-wrap: anywhere;
}

.login-submit {
  width: 100%;
}
