/* ════════════════════════════════════════════════
   DRANZER — PREMIUM LOCK SCREEN
   PBKDF2-SHA512 Password Gate
   ════════════════════════════════════════════════ */

/* ── Lock screen root ─────────────────────────── */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06060e;
  overflow: hidden;
  transition: opacity 0.85s cubic-bezier(0.77, 0, 0.18, 1),
              transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
}

.lock-screen.unlocked {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* ── Background grid ──────────────────────────── */
.lock-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,242,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

/* ── Ember canvas ─────────────────────────────── */
.lock-ember-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Animated rings ───────────────────────────── */
.lock-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.lock-rings .lr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid transparent;
}

.lock-rings .lr-1 {
  width: 600px;
  height: 600px;
  border-top-color: rgba(0, 242, 255, 0.08);
  border-right-color: rgba(0, 242, 255, 0.04);
  animation: lk-spin 12s linear infinite;
}

.lock-rings .lr-2 {
  width: 800px;
  height: 800px;
  border-bottom-color: rgba(255, 69, 0, 0.06);
  border-left-color: rgba(255, 69, 0, 0.03);
  animation: lk-spin 20s linear infinite reverse;
}

.lock-rings .lr-3 {
  width: 1000px;
  height: 1000px;
  border: 1px dashed rgba(255, 255, 255, 0.025);
  animation: lk-spin 35s linear infinite;
}

@keyframes lk-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Radial glow behind card ──────────────────── */
.lock-screen::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(0, 242, 255, 0.06) 0%,
    rgba(255, 69, 0, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Card ─────────────────────────────────────── */
.lock-card {
  position: relative;
  z-index: 10;
  width: min(440px, 90vw);
  padding: 3rem 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;

  background: rgba(12, 10, 22, 0.72);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid rgba(0, 242, 255, 0.12);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 48px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 242, 255, 0.05),
    0 0 2px rgba(0, 242, 255, 0.2);

  animation: lk-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lk-card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ─────────────────────────────────────── */
.lock-logo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: lk-logo-float 4s ease-in-out infinite;
}

.lock-logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,242,255,0.18) 0%, transparent 70%);
  animation: lk-logo-float 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes lk-logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Headline ─────────────────────────────────── */
.lock-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lock-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(0, 242, 255, 0.6);
  text-transform: uppercase;
}

.lock-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.lock-title-em {
  font-style: italic;
  background: linear-gradient(135deg, #00f2ff 0%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lock-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(240, 230, 211, 0.5);
  line-height: 1.6;
  margin: 0.3rem 0 0;
}

/* ── Input field ──────────────────────────────── */
.lock-field-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lock-field-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 242, 255, 0.15);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.lock-field-group:focus-within {
  border-color: rgba(0, 242, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.08), 0 0 20px rgba(0, 242, 255, 0.06);
}

.lock-field-group.shake {
  animation: lk-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: rgba(255, 69, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

@keyframes lk-shake {
  10%, 90%  { transform: translateX(-2px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60%  { transform: translateX(6px); }
  100%      { transform: translateX(0); }
}

.lock-icon {
  width: 18px;
  height: 18px;
  margin: 0 0 0 1rem;
  color: rgba(0, 242, 255, 0.5);
  flex-shrink: 0;
}

.lock-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #f0e6d3;
  letter-spacing: 0.05em;
}

.lock-input::placeholder {
  color: rgba(240, 230, 211, 0.25);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.lock-eye {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1rem;
  color: rgba(240, 230, 211, 0.35);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.lock-eye:hover {
  color: rgba(0, 242, 255, 0.7);
}

.lock-eye svg {
  width: 18px;
  height: 18px;
}

/* ── Error message ────────────────────────────── */
.lock-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #ff4500;
  text-align: left;
  padding: 0 0.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
}

.lock-error.show {
  max-height: 40px;
  opacity: 1;
}

/* ── Unlock button ────────────────────────────── */
.lock-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #ff4500 0%, #ff6b2b 50%, #ff8c00 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
  box-shadow:
    0 4px 24px rgba(255, 69, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.lock-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lock-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(255, 69, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.lock-btn:hover svg {
  transform: translateX(3px);
}

.lock-btn:active {
  transform: translateY(0);
}

.lock-btn.loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: wait;
}

.lock-btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: lk-shimmer 2.4s ease-in-out infinite;
}

@keyframes lk-shimmer {
  0%   { left: -100%; }
  60%, 100% { left: 160%; }
}

.lock-btn.loading::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lk-spin 0.7s linear infinite;
}

/* ── Notice text ──────────────────────────────── */
.lock-notice {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(240, 230, 211, 0.25);
  margin: 0;
  letter-spacing: 0.05em;
}

#lockAttemptTxt {
  color: rgba(255, 69, 0, 0.55);
}

/* ── Top accent border glow ───────────────────── */
.lock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,242,255,0.4), rgba(255,69,0,0.3), transparent);
  border-radius: 0 0 2px 2px;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 480px) {
  .lock-card {
    padding: 2.2rem 1.6rem 1.8rem;
    gap: 1.4rem;
    border-radius: 18px;
  }

  .lock-rings .lr-1 { width: 320px; height: 320px; }
  .lock-rings .lr-2 { width: 440px; height: 440px; }
  .lock-rings .lr-3 { width: 560px; height: 560px; }
}
