:root {
  --pitch-brand-bg: #08110f;
  --pitch-brand-bg-raised: #0d1714;
  --pitch-brand-surface: #14211d;
  --pitch-brand-surface-soft: #101b18;
  --pitch-brand-border: rgba(156, 176, 168, 0.28);
  --pitch-brand-border-strong: rgba(56, 229, 140, 0.46);
  --pitch-brand-text: #f6fbf8;
  --pitch-brand-muted: #9cb0a8;
  --pitch-brand-green: #38e58c;
  --pitch-brand-green-soft: #a7ffd1;
  --pitch-brand-dark-text: #06110d;
}

html,
body {
  background: var(--pitch-brand-bg) !important;
}

body:not(.plo-landing-active) > div:not(#pitchlingo-landing-root) {
  background: var(--pitch-brand-bg-raised) !important;
  border-color: rgba(56, 229, 140, 0.16) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46) !important;
}

#auth-screen {
  background:
    radial-gradient(circle at 50% 4%, rgba(56, 229, 140, 0.15), transparent 31%),
    linear-gradient(180deg, #0c1a16 0%, var(--pitch-brand-bg) 68%) !important;
  color: var(--pitch-brand-text);
}

#auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(56, 229, 140, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 229, 140, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 58%);
}

#auth-screen > * {
  position: relative;
  z-index: 1;
}

#auth-screen button[onclick="hideAuthScreen()"] {
  color: var(--pitch-brand-muted) !important;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

#auth-screen button[onclick="hideAuthScreen()"]:hover,
#auth-screen button[onclick="hideAuthScreen()"]:focus-visible {
  color: var(--pitch-brand-text) !important;
  background: rgba(56, 229, 140, 0.09);
  outline: none;
}

#auth-screen .fa-futbol {
  color: var(--pitch-brand-green) !important;
  filter: drop-shadow(0 0 22px rgba(56, 229, 140, 0.34));
}

#auth-screen h1 {
  color: var(--pitch-brand-text) !important;
  letter-spacing: -0.025em !important;
}

#auth-screen h1 + p {
  color: var(--pitch-brand-green) !important;
}

#auth-screen button[onclick="handleGoogleLogin()"] {
  background: #ffffff !important;
  color: #17211d !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

#auth-screen button[onclick="handleGoogleLogin()"]:hover,
#auth-screen button[onclick="handleGoogleLogin()"]:focus-visible {
  background: #f3f8f5 !important;
  outline: 2px solid rgba(56, 229, 140, 0.38);
  outline-offset: 2px;
}

#auth-screen .flex-grow.border-t {
  border-color: var(--pitch-brand-border) !important;
}

#auth-screen .flex-grow.border-t + span {
  color: var(--pitch-brand-muted) !important;
}

#auth-screen input {
  background: rgba(13, 23, 20, 0.94) !important;
  border-color: var(--pitch-brand-border) !important;
  color: var(--pitch-brand-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

#auth-screen input::placeholder {
  color: #7f948b !important;
}

#auth-screen input:hover {
  border-color: rgba(156, 176, 168, 0.42) !important;
}

#auth-screen input:focus {
  border-color: var(--pitch-brand-green) !important;
  box-shadow: 0 0 0 3px rgba(56, 229, 140, 0.13) !important;
}

#auth-screen button[onclick="handleLogin()"] {
  background: linear-gradient(135deg, var(--pitch-brand-green), var(--pitch-brand-green-soft)) !important;
  color: var(--pitch-brand-dark-text) !important;
  box-shadow: 0 14px 34px rgba(56, 229, 140, 0.2) !important;
}

#auth-screen button[onclick="handleLogin()"]:hover,
#auth-screen button[onclick="handleLogin()"]:focus-visible {
  filter: brightness(1.04);
  outline: 2px solid rgba(167, 255, 209, 0.38);
  outline-offset: 2px;
}

#auth-screen button[onclick="handleSignUp()"] {
  background: rgba(20, 33, 29, 0.48) !important;
  border-color: var(--pitch-brand-border) !important;
  color: #d9e5df !important;
}

#auth-screen button[onclick="handleSignUp()"]:hover,
#auth-screen button[onclick="handleSignUp()"]:focus-visible {
  background: rgba(56, 229, 140, 0.09) !important;
  border-color: var(--pitch-brand-border-strong) !important;
  color: var(--pitch-brand-text) !important;
  outline: none;
}

#auth-screen > div:last-child > p {
  color: var(--pitch-brand-muted) !important;
}

#auth-screen > div:last-child > p button {
  color: var(--pitch-brand-green) !important;
}

#auth-error-msg {
  background: rgba(69, 10, 10, 0.62) !important;
  border-color: rgba(248, 113, 113, 0.72) !important;
}

@media (min-width: 768px) {
  #auth-screen {
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen *,
  #auth-screen *::before,
  #auth-screen *::after {
    transition-duration: 0.01ms !important;
  }
}
