:root {
  --primary: #ff003c; /* Neon Racing Red */
  --primary-glow: rgba(255, 0, 60, 0.5);
  --bg-dark: #0a0a0c;
  --card-bg: rgba(15, 15, 20, 0.7);
  --text-light: #f5f5f7;
  --text-gray: #a1a1a6;
  --green-glow: #00ff66;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}
/* Ambient background video and overlay */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4) contrast(1.1);
}
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 0, 60, 0.15), transparent 60%), linear-gradient(135deg, rgba(10, 10, 12, 0.85) 30%, rgba(10, 10, 12, 0.6) 100%);
  z-index: -1;
}
/* Container Layout */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
/* Left Side: Info & Brand */
.brand-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tagline {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tagline::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}
.title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 40%, #888 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 500px;
}
/* Track Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  padding: 15px;
  backdrop-filter: blur(10px);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.stat-value {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  margin-top: 5px;
}
/* Right Side: Login Card */
.login-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--primary);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.login-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.card-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.card-header p {
  font-size: 13px;
  color: var(--text-gray);
}
/* Form styling */
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(0, 0, 0, 0.6);
}
/* Icons inside inputs */
.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  transition: color 0.3s ease;
  pointer-events: none;
}
.form-input:focus + .input-icon {
  color: var(--primary);
}
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}
.password-toggle:hover {
  color: var(--text-light);
}
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 10px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-gray);
  user-select: none;
}
.remember-me input {
  accent-color: var(--primary);
  cursor: pointer;
}
.forgot-pass {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}
.forgot-pass:hover {
  text-decoration: underline;
  color: #ff3366;
}
/* Custom login button with hover animation */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.btn-submit:hover::before {
  left: 100%;
}
.btn-submit:hover {
  background: #e60036;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-submit:active {
  transform: translateY(0);
}
/* Success & Error alerts styling */
.alert {
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease forwards;
}
.alert-error {
  background: rgba(255, 0, 60, 0.15);
  border: 1px solid var(--primary);
  color: #ff809b;
}
.alert-success {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid var(--green-glow);
  color: #80ffb5;
}
/* Spinner for loading state */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Custom Track Map SVG Outline */
.track-map-container {
  margin-top: 10px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.track-map-container:hover {
  opacity: 1;
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .brand-section {
    align-items: center;
  }
  .tagline::before {
    display: none;
  }
  .stats-grid {
    width: 100%;
    max-width: 500px;
  }
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}
.lang-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.lang-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.lang-btn:hover::before {
  left: 100%;
}
.lang-btn:hover {
  background: #e60036;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}
.lang-btn:active {
  transform: translateY(0);
}


/* Live Stream UI */
.live-stream-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 50;
  padding: 10px 25px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 0, 60, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.live-stream-wrapper:hover {
  background: rgba(255, 0, 60, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
  transform: translateX(-50%) translateY(-2px);
}
.live-indicator {
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-live 1.5s infinite alternate;
}
.live-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: white;
  letter-spacing: 1.5px;
}

@keyframes pulse-live {
  0% { transform: scale(0.85); opacity: 0.7; box-shadow: 0 0 5px var(--primary); }
  100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 15px var(--primary); }
}

/* Video Modal */
.video-modal {
  visibility: hidden;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal.active {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
  padding: 5px;
}
.close-modal {
  position: absolute;
  top: -40px;
  right: -10px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal:hover {
  color: var(--primary);
}
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.iframe-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 8px;
}
