@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Orbitron:wght@700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

html, body.auth-screen {
  margin: 0;
  min-height: 100%;
  background: #050705 !important;
  color: #f5f7f2;
  font-family: Outfit, system-ui, sans-serif;
}
body.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,255,90,.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212,175,55,.1), transparent 50%),
    linear-gradient(180deg, #030503 0%, #0a0e0a 45%, #050705 100%) !important;
  overflow-x: hidden;
}
body.auth-screen::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(0,255,90,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,90,.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(0,255,90,.08), transparent 25%),
    radial-gradient(circle at 75% 60%, rgba(212,175,55,.06), transparent 22%);
  background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
  animation: circuitPulse 6s ease-in-out infinite;
}
@keyframes circuitPulse {
  0%,100% { opacity: .28; }
  50% { opacity: .42; }
}
body.auth-screen > * { position: relative; z-index: 1; }

.auth-screen .loader {
  background: #050705 !important;
}
.auth-screen .loader img.logo {
  width: min(180px, 46vw);
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(212,175,55,.25), 0 0 60px rgba(0,255,90,.15);
}

.auth-shell {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.auth-crest {
  width: min(168px, 42vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 10px rgba(255,230,100,.55))
    drop-shadow(0 0 22px rgba(0,255,90,.25))
    drop-shadow(0 12px 28px rgba(0,0,0,.55));
  animation: crestGlow 2.8s ease-in-out infinite;
}
@keyframes crestGlow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,230,100,.45)) drop-shadow(0 0 18px rgba(0,255,90,.2)) drop-shadow(0 12px 28px rgba(0,0,0,.55)); }
  50% { filter: drop-shadow(0 0 16px rgba(255,245,150,.85)) drop-shadow(0 0 28px rgba(0,255,90,.35)) drop-shadow(0 12px 28px rgba(0,0,0,.55)); }
}

.auth-wordmark {
  text-align: center;
  margin-top: -.35rem;
}
.auth-wordmark .mama {
  display: block;
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: clamp(2.4rem, 9vw, 3.1rem);
  letter-spacing: .14em;
  line-height: .95;
  color: #d4af37;
  text-shadow:
    0 0 2px #fff8c0,
    0 0 8px #ffe566,
    0 0 18px rgba(255,220,80,.9),
    0 0 32px rgba(212,175,55,.55),
    -1.5px -1.5px 0 #fff59a,
    1.5px -1.5px 0 #fff59a,
    -1.5px 1.5px 0 #fff59a,
    1.5px 1.5px 0 #fff59a;
  animation: mamaOutline 2.2s ease-in-out infinite;
}
.auth-wordmark .betpro {
  display: block;
  margin-top: .2rem;
  font-family: Orbitron, Outfit, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: .28em;
  color: #00ff66;
  text-shadow: 0 0 12px rgba(0,255,102,.7), 0 0 28px rgba(0,255,102,.35);
}
.auth-wordmark .betpro .slash-o {
  position: relative;
  display: inline-block;
}
.auth-wordmark .betpro .slash-o::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 48%;
  height: 2.5px;
  background: #00ff66;
  transform: rotate(-28deg);
  box-shadow: 0 0 8px rgba(0,255,102,.8);
}
@keyframes mamaOutline {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .4rem;
}
.auth-field { display: flex; flex-direction: column; gap: .35rem; }
.auth-field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  padding-left: .15rem;
}
.auth-input {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 54px;
  padding: 0 1rem 0 .95rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,24,16,.92), rgba(14,16,12,.95));
  border: 1.5px solid rgba(212,175,55,.55);
  box-shadow:
    0 0 0 1px rgba(212,175,55,.12),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 22px rgba(0,0,0,.35);
}
.auth-input.pass {
  border-color: rgba(0,255,102,.55);
  box-shadow:
    0 0 0 1px rgba(0,255,102,.12),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 22px rgba(0,0,0,.35),
    0 0 18px rgba(0,255,102,.08);
}
.auth-input:focus-within {
  box-shadow:
    0 0 0 2px rgba(255,229,102,.25),
    0 0 24px rgba(212,175,55,.2),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.auth-input.pass:focus-within {
  box-shadow:
    0 0 0 2px rgba(0,255,102,.28),
    0 0 24px rgba(0,255,102,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.auth-input .ico {
  width: 22px; height: 22px; flex-shrink: 0;
  color: #d4af37;
}
.auth-input.pass .ico { color: #00ff66; }
.auth-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font: 600 15px Outfit, system-ui, sans-serif;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.auth-input input::placeholder { color: rgba(255,255,255,.38); font-weight: 500; }
.auth-input .eye {
  border: 0; background: transparent; color: rgba(0,255,102,.85);
  padding: 4px; cursor: pointer; display: grid; place-items: center;
}
.auth-input .eye svg { width: 20px; height: 20px; }

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -.35rem;
}
.auth-row a {
  color: #d4af37;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(212,175,55,.35);
}
.auth-row a:hover { color: #ffe566; }

.auth-error {
  margin: 0;
  color: #ff6b6b;
  font-size: .82rem;
  font-weight: 600;
  min-height: 1.1em;
}
.auth-error:empty { display: none; }

/* Diagonal split LOGIN | REGISTER — glossy polished */
.auth-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: .45rem;
  border-radius: 999px;
  overflow: hidden;
  min-height: 58px;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 14px 34px rgba(0,0,0,.55),
    0 0 0 1px rgba(0,0,0,.35),
    0 0 28px rgba(212,175,55,.22),
    0 0 28px rgba(0,255,102,.16);
}
.auth-split::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255,255,255,.55) 49%,
    rgba(255,255,255,.15) 51%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 3;
  animation: flare 3.2s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
.auth-split::after {
  content: "";
  position: absolute;
  left: 48%;
  top: -8%;
  bottom: -8%;
  width: 4px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255,255,255,.35);
}
@keyframes flare {
  0%,100% { transform: translateX(-18%) rotate(0.001deg); opacity: .4; }
  50% { transform: translateX(18%) rotate(0.001deg); opacity: .85; }
}
.auth-split .login,
.auth-split .register {
  border: 0;
  cursor: pointer;
  font: 900 15px Outfit, system-ui, sans-serif;
  letter-spacing: .16em;
  text-decoration: none;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: filter .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.auth-split .login {
  color: #1a1200;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), transparent 42%),
    linear-gradient(155deg, #fff6b8 0%, #ffe566 22%, #f0c94a 48%, #d4af37 72%, #a67c00 100%);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  margin-right: -14%;
  padding: 0 10% 0 4%;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.55),
    inset 0 -3px 8px rgba(120,80,0,.28);
}
.auth-split .register {
  color: #03140a;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), transparent 42%),
    linear-gradient(155deg, #9affc4 0%, #2dff88 22%, #00e65c 48%, #00b84a 72%, #007a32 100%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -14%;
  padding: 0 4% 0 10%;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -3px 8px rgba(0,80,30,.28);
}
.auth-split .login:hover { filter: brightness(1.06) saturate(1.05); }
.auth-split .register:hover { filter: brightness(1.06) saturate(1.08); }
.auth-split .login:active,
.auth-split .register:active {
  filter: brightness(.94);
  transform: scale(.985);
}

.auth-google {
  width: 100%;
  margin-top: .15rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: 700 14px Outfit, system-ui, sans-serif;
  cursor: pointer;
}
.auth-google:hover { background: rgba(255,255,255,.1); border-color: rgba(0,255,102,.35); }

.auth-foot {
  margin: .2rem 0 0;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  text-align: center;
}
.auth-foot a { color: #00ff66; font-weight: 700; text-decoration: none; }

/* Landing reuse */
body.auth-screen .landing-cta { width: 100%; }
