#auth-body {
  background:
    linear-gradient(135deg, rgba(80, 72, 229, 0.20), rgba(13, 162, 231, 0.10) 42%, transparent 72%),
    #090e1a !important;
  color: #101826;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#auth-body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 76%);
}

.auth-main-content {
  padding: 20px;
}

#auth-main-site-link {
  top: 28px;
  left: 28px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(16, 24, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 15px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(103, 232, 249, 0.10);
  text-decoration: none;
  backdrop-filter: blur(16px);
}

#auth-main-site-link:hover {
  background: rgba(16, 24, 38, 0.94);
  border-color: rgba(103, 232, 249, 0.32);
  color: #cffafe;
}

#auth-container {
  border: 1px solid rgba(218, 222, 231, 0.92);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#auth-container-parent {
  max-width: 456px;
}

#auth-heading-container a {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  gap: 10px;
  color: #101826;
  text-decoration: none;
}

#auth-heading-container a::after {
  content: "SQL Cockpit";
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

#auth-heading-container img {
  border-radius: 10px;
}

#auth-heading-title {
  padding-top: 18px;
  color: #101826;
  font-weight: 700;
  letter-spacing: 0;
}

#auth-heading-description {
  max-width: 340px;
  color: #495465;
  opacity: 1;
}

.auth-component-input {
  border-color: #dadee7;
}

.auth-component-input:focus {
  box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.14);
}

.auth-component-button {
  border-radius: 8px !important;
  box-shadow: 0 0 22px rgba(80, 72, 229, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.auth-component-button:hover {
  box-shadow: 0 0 28px rgba(80, 72, 229, 0.34);
  transform: translateY(-1px);
}

/* Auth cards stay light even when the device prefers dark mode. */
#auth-container .auth-passkey-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #dadee7;
  border-radius: 8px;
  background: #f8fafc;
  color: #101826;
  font-weight: 500;
  appearance: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

#auth-container .auth-passkey-button:enabled:hover {
  background: #eef2ff;
  border-color: #5048e5;
}

#auth-container .auth-passkey-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#auth-container .auth-passkey-button:focus-visible {
  outline: 2px solid #5048e5;
  outline-offset: 3px;
}

#auth-container .auth-passkey-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#auth-container [data-passkey-feedback] {
  color: #495465;
}

#auth-container [data-passkey-feedback][data-state="error"] {
  color: #b91c1c;
}

@media (max-width: 640px) {
  #auth-main-site-link {
    top: 18px;
    left: 18px;
    min-height: 46px;
    padding: 0 15px;
    font-size: 14px;
  }

  .auth-main-content {
    padding: 0;
  }

  #auth-container {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
}
