/* ===============================================================
   Lockscreen — Anmeldebildschirm im PC-Stil
   Baut auf den Farbvariablen aus style.css auf.
   =============================================================== */

.lock {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 82% 12%, rgba(124,140,248,0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 12% 88%, rgba(91,106,214,0.10), transparent 62%),
    linear-gradient(160deg, #0b0b12 0%, #08080a 60%, #0a0910 100%);
}
.lock::before { content: none; }

.lock-screen {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* --- Meldungen ------------------------------------------------- */

.lock-flash {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100% - 40px));
}
.lock-flash .flash { box-shadow: 0 16px 40px rgba(0,0,0,0.5); }

/* --- Uhr oben -------------------------------------------------- */

.lock-clock {
  text-align: center;
  margin-top: clamp(48px, 12vh, 120px);
  user-select: none;
}
.lc-time {
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f3f3f6;
  text-shadow: 0 2px 34px rgba(124,140,248,0.25);
  font-variant-numeric: tabular-nums;
}
.lc-date {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

/* --- Mitte: Anmeldung ------------------------------------------ */

.lock-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lock-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: lockIn 0.5s cubic-bezier(0.22,1,0.36,1) backwards;
  animation-delay: 0.08s;
}
@keyframes lockIn { from{opacity:0; transform: translateY(14px);} to{opacity:1; transform:none;} }

.lock-avatar {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 500;
  color: #0a0a0b;
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
  box-shadow: 0 10px 34px var(--accent-glow), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.lock-avatar-blank {
  color: var(--text-soft);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.lock-name {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lock-hint {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-faint);
}

/* --- Formular -------------------------------------------------- */

.lock-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lock-field .input {
  background: rgba(11,11,14,0.72);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  padding: 13px 15px;
}
.lock-field .input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Passwortzeile mit Los-Knopf */
.lock-pw {
  position: relative;
}
.lock-pw .input { text-align: center; padding-right: 46px; }
.lock-go {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0a0b;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.lock-go:hover { background: #fff; }
.lock-go:active { transform: translateY(-50%) scale(0.94); }

.lock-error {
  margin-top: 2px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--danger-bg);
  border: 1px solid rgba(248,115,127,0.3);
  color: var(--danger);
  font-size: 13px;
}

/* --- Button (angemeldet) --------------------------------------- */

.lock-btn { margin-top: 24px; }
.lock-alt { margin-top: 12px; }
.lock-link {
  border: 0;
  background: none;
  color: var(--text-faint);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lock-link:hover { color: var(--accent); }

/* --- Hilfslinks ------------------------------------------------ */

.lock-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
}
.lock-links a { color: var(--text-soft); }
.lock-links a:hover { color: var(--accent); }
.lock-links .dot { color: var(--text-faint); }

/* --- Marke unten ----------------------------------------------- */

.lock-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}
.lock-mark {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Mobil ----------------------------------------------------- */

@media (max-width: 520px) {
  .lock-clock { margin-top: 56px; }
  .lc-time { font-size: 3.4rem; }
  .lock-links { gap: 7px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lock-card { animation: none; }
}
