.LoginModal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

@media (prefers-color-scheme: dark) {
  .LoginModal-backdrop {
    background: rgba(0, 0, 0, 0.6);
  }
}

.LoginModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  padding: 2.5rem 2rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 340px;
  width: 90%;
  z-index: 1000;
}

@media (prefers-color-scheme: dark) {
  .LoginModal {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

.LoginModal-content {
  position: relative;
}

.LoginModal-close {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.LoginModal-close:hover:not(:disabled) {
  color: var(--text-primary);
}

.LoginModal-close:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.LoginModal-title {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.375rem;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.LoginModal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

.LoginModal-subtitle a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.LoginModal-subtitle a:hover {
  color: var(--text-primary);
}
