
html.lh-locked { visibility: hidden !important; }
html.lh-locked body { overflow: hidden !important; }

#lh-auth-modal {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse at center, #1A1A1A 0%, #0A0A0A 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  visibility: visible !important;
  animation: lhAuthFadeIn 380ms cubic-bezier(.16,1,.3,1);
}
@keyframes lhAuthFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lh-auth-modal::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.79  0 0 0 0 0.64  0 0 0 0 0.15  0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4; pointer-events: none; mix-blend-mode: overlay;
}

.lh-auth-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: #FAFAFA; color: #0A0A0A;
  border-radius: 8px;
  padding: 44px 40px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border-top: 4px solid #C9A227;
  animation: lhAuthRise 540ms cubic-bezier(.16,1,.3,1);
}
@keyframes lhAuthRise {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.lh-auth-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 24px;
}
.lh-auth-logo {
  height: 140px; width: auto; display: block;
  filter: drop-shadow(0 6px 20px rgba(201,162,39,0.25));
}
.lh-auth-brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2.5px;
  color: #7A7A7A; text-transform: uppercase; text-align: center;
}

.lh-auth-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 32px; letter-spacing: -0.02em;
  margin: 0 0 8px; color: #0A0A0A;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.lh-auth-card p {
  color: #4e4e4e; font-size: 14.5px; line-height: 1.55;
  margin: 0 0 24px;
}

.lh-auth-card form { display: flex; flex-direction: column; gap: 14px; }
.lh-auth-card label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #7A7A7A; font-weight: 600;
}
.lh-auth-card label input[type=text],
.lh-auth-card label input[type=password] {
  font-family: 'Inter', sans-serif;
  font-size: 15px; letter-spacing: 0;
  padding: 12px 14px;
  background: #FFFFFF; color: #0A0A0A;
  border: 1px solid #BCBCBC; border-radius: 6px;
  text-transform: none; font-weight: 400;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.lh-auth-card label input[type=text]:focus,
.lh-auth-card label input[type=password]:focus {
  outline: none; border-color: #C9A227;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}

.lh-auth-remember {
  flex-direction: row !important; align-items: center; gap: 8px !important;
  font-size: 11.5px !important; text-transform: none !important; letter-spacing: 0 !important;
  color: #4e4e4e !important; font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer; user-select: none;
  margin-top: 4px;
}
.lh-auth-remember input { width: 16px; height: 16px; accent-color: #C9A227; cursor: pointer; }

.lh-auth-error {
  background: rgba(181,32,43,0.08);
  border-left: 3px solid #B5202B;
  padding: 10px 14px; border-radius: 0 4px 4px 0;
  color: #B5202B; font-size: 13px; font-weight: 500;
  display: none;
}
.lh-auth-error.show { display: block; animation: lhAuthShake 380ms; }
@keyframes lhAuthShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.lh-auth-card button[type=submit] {
  margin-top: 8px;
  background: #0A0A0A; color: #C9A227;
  border: 1px solid #C9A227; border-radius: 6px;
  padding: 14px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.16,1,.3,1);
}
.lh-auth-card button[type=submit]:hover {
  background: #C9A227; color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(201,162,39,0.5);
}
.lh-auth-card button[type=submit]:active { transform: translateY(0); }
.lh-auth-card button[type=submit]:disabled {
  opacity: 0.5; cursor: wait;
}

.lh-auth-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #E8E5DC;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #7A7A7A;
  letter-spacing: 1px; text-align: center;
}

@media (max-width: 500px) {
  .lh-auth-card { padding: 32px 24px 28px; }
  .lh-auth-card h1 { font-size: 26px; }
}
