﻿:root {
  color-scheme: dark;
  --bg: #090c14;
  --panel-dark: #0b0f18;
  --panel-auth: #0b111b;
  --stroke: rgba(255, 255, 255, 0.18);
  --stroke-strong: rgba(255, 255, 255, 0.35);
  --text: #f4f7ff;
  --muted: rgba(255, 255, 255, 0.68);
  --discord: #5865f2;
  --discord-hover: #6d78ff;
  --focus: #9bc3ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.panel {
  position: relative;
  padding: clamp(36px, 5vw, 72px);
}

.branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #0c111b;
  border-right: 1px solid var(--stroke);
  overflow: hidden;
}

.brand-inner {
  position: relative;
  z-index: 1;
}

.brand-name {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 2px;
  font-weight: 600;
}

.brand-tagline {
  margin-top: 14px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  letter-spacing: 0.4px;
}

.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b111b;
  overflow: hidden;
}

.montage {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.03);
}

.tile {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1d2a3f 0%, #111a2b 55%, #0a1221 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.tile.border {
  border: 1px solid var(--stroke);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.3;
  mix-blend-mode: screen;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(71, 125, 255, 0.18), transparent 65%);
  opacity: 0.35;
}

.hud {
  position: absolute;
  inset: 8% 10% auto 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0.35;
  animation: hud-flicker 3.2s steps(2, end) infinite;
}

.paddle {
  position: absolute;
  width: 6px;
  height: 34%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(120, 180, 255, 0.6);
  animation: paddle-move var(--paddle-speed, 5s) ease-in-out infinite;
}

.paddle.left {
  left: 8%;
  top: 12%;
}

.paddle.right {
  right: 8%;
  bottom: 12%;
  animation-delay: -2s;
}

.ball {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  left: 16%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(140, 200, 255, 0.8);
  animation: ball-move var(--ball-speed, 6s) linear infinite;
}

.t1 {
  top: 8%;
  left: 6%;
  width: 46%;
  height: 34%;
  --ball-speed: 7s;
  --paddle-speed: 6s;
  animation-delay: -1s;
}

.t2 {
  top: 12%;
  right: 6%;
  width: 36%;
  height: 26%;
  --ball-speed: 5.5s;
  --paddle-speed: 4.8s;
  animation-delay: -4s;
}

.t3 {
  top: 44%;
  left: 10%;
  width: 32%;
  height: 24%;
  --ball-speed: 6.2s;
  --paddle-speed: 5.4s;
  animation-delay: -7s;
}

.t4 {
  bottom: 8%;
  left: 40%;
  width: 52%;
  height: 30%;
  --ball-speed: 7.5s;
  --paddle-speed: 6.5s;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(5, 8, 14, 0.85), rgba(10, 12, 20, 0.6));
}

.auth-content {
  position: relative;
  z-index: 3;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}

.auth-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--discord);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.discord-btn img {
  width: 20px;
  height: 20px;
}

.discord-btn:hover {
  background: var(--discord-hover);
  box-shadow: 0 12px 24px rgba(88, 101, 242, 0.35);
  transform: translateY(-2px);
}

.discord-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.25);
}

.discord-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.4);
}

@keyframes ball-move {
  0% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(1200%, -70%);
  }
  100% {
    transform: translate(0, -50%);
  }
}

@keyframes paddle-move {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(35%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes hud-flicker {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.6;
  }
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }

  .branding {
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }

  .panel {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 32px 24px;
  }
}
