/* Auth (Login) Page - Dither Background + Fuzzy Title + GlassSurface CTA */

/* screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


body.auth-body {
  min-height: 100vh;
  margin: 0;
  background: #070A12;
  overflow: hidden;
  display: block;
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 28px;
}

@media (min-width: 900px) {
  .auth-layout {
    grid-template-rows: 1fr;
    grid-template-columns: 7fr 5fr;
    align-content: center;
    justify-content: center;
    max-width: 1120px;
    margin: 0 auto;
    gap: 40px;
    padding: 76px 40px;
  }

  /* subtle optical balance: CTA sits slightly lower than hero */
  .auth-cta {
    align-self: center;
    transform: translateY(24px);
  }

  .auth-hero {
    align-self: center;
  }
}

.auth-hero {
  width: 100%;
  display: grid;
  place-items: center;
}

@media (min-width: 900px) {
  .auth-hero {
    place-items: start;
    padding-left: 8px;
  }
}

.auth-hero-inner {
  width: 100%;
  max-width: 680px;
  text-align: left;
  display: grid;
  justify-items: start;
}

.fuzzy-title {
  width: 100%;
  height: clamp(160px, 24vh, 260px);
  display: block;
  margin-left: -6px;
}

body.auth-body .auth-hero-subtitle {
  margin: 10px 0 0;
  padding: 0;

  /* typography */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;

  /* color + "digital glow" */
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.10),
    -0.6px 0 0 rgba(99, 102, 241, 0.25),
    0.6px 0 0 rgba(236, 72, 153, 0.18);
}

@media (min-width: 900px) {
  body.auth-body .auth-hero-subtitle {
    margin-left: 6px;
  }
}

.auth-hero-meta {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.62);
}

.auth-cta {
  width: 100%;
  display: grid;
  place-items: center;
}

/* full-screen background canvas */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}


/* contrast + color grading */
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 650px at 50% 35%, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(145deg, rgba(79, 70, 229, 0.18) 0%, rgba(0, 0, 0, 0.10) 45%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* soften pixel edges + lift saturation a bit */
#dither-bg {
  width: 100%;
  height: 100%;
  display: block;
  filter: contrast(1.05) saturate(1.15);
}


.auth-card {
  width: min(420px, 100%);
  padding: 18px;
}

.auth-card-header {
  text-align: left;
  margin-bottom: 14px;
}

.auth-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, 0.92);
}

.auth-card-desc {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.72);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.auth-google-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.auth-google-icon {
  width: 20px;
  height: 20px;
}

.auth-footer {
  margin-top: 14px;
  text-align: left;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: -0.1px;
}

/* button loading */
.btn.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

.btn .btn-spinner {
  display: inline-flex;
  margin-right: 10px;
}

@media (max-width: 420px) {
  .auth-layout {
    padding: 28px 16px 20px;
    gap: 18px;
  }

  .auth-card {
    padding: 16px;
  }
}

/* --- Dark Mode Overrides for Auth Page --- */

/* By default, the auth page is already dark. This is for consistency and future changes. */
.auth-body.theme-dark .auth-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Style the Google button for dark mode */
.auth-body.theme-dark .auth-google-btn {
  background-color: var(--bg-secondary, rgba(28, 28, 30, 0.60));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.10));
}

.auth-body.theme-dark .auth-google-btn:hover {
  background-color: var(--bg-tertiary, rgba(35, 35, 38, 0.65));
}

.auth-body.theme-dark .auth-google-btn .btn-text {
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
}

/* Invert the Google icon to make it white in dark mode */
.auth-body.theme-dark .auth-google-icon {
  filter: brightness(0) invert(1);
}
