:root {
  --bg: #02050b;
  --bg2: #08111c;
  --panel: rgba(7, 12, 20, 0.96);
  --line: rgba(86, 146, 219, 0.34);
  --line-soft: rgba(120, 176, 245, 0.16);
  --gold: #67a8ff;
  --gold2: #dde6f0;
  --red: #315a8c;
  --red2: #4b83c9;
  --text: #eef4fb;
  --muted: #9aa8b9;
  --green: #70c7ff;
  --blue: #63b3ff;
  --purple: #8fa8d8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(69, 126, 208, 0.18), transparent 18%),
    radial-gradient(circle at 18% 26%, rgba(99, 179, 255, 0.12), transparent 16%),
    linear-gradient(180deg, #030405 0%, #060c14 100%);
}

.menu a.active {
  color: var(--gold2);
}

.login-page {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
}

.login-bg,
.login-overlay {
  position: absolute;
  inset: 0;
}

.login-bg {
  background:
    linear-gradient(90deg, rgba(4,6,10,0.92) 0%, rgba(4,6,10,0.78) 36%, rgba(4,6,10,0.52) 100%),
    url("assets/hero-reference.png") center center / cover no-repeat;
  filter: brightness(0.36) saturate(1.05) contrast(1.08);
}

.login-overlay {
  background:
    radial-gradient(circle at 72% 22%, rgba(99, 179, 255, 0.2), transparent 16%),
    radial-gradient(circle at 82% 65%, rgba(49, 90, 140, 0.16), transparent 14%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.45));
}

.login-hero {
  position: relative;
  z-index: 2;
  padding: 70px 0 90px;
}

.login-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: start;
}

.login-copy {
  padding-top: 30px;
  max-width: 520px;
}

.login-kicker {
  color: var(--gold2);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.login-copy h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: clamp(3.8rem, 8vw, 6.2rem);
  line-height: 0.92;
  color: #eef4fb;
  margin-bottom: 18px;
}

.login-copy h1 span {
  color: var(--gold2);
}

.login-text {
  font-size: 1.25rem;
  color: #c2cfde;
  line-height: 1.55;
  margin-bottom: 26px;
}

.login-info-boxes {
  display: grid;
  gap: 14px;
}

.login-info-box {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(8, 9, 12, 0.78);
  border: 1px solid rgba(120, 176, 245, 0.14);
  box-shadow: var(--shadow);
}

.login-info-box strong {
  display: block;
  color: var(--gold2);
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.login-info-box span {
  color: var(--muted);
  line-height: 1.45;
}

.login-card {
  background: rgba(8, 9, 12, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(120, 176, 245, 0.08), rgba(0,0,0,0));
}

.login-card-head h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 6px;
}

.login-card-head p {
  color: var(--muted);
  font-size: 1rem;
}

.login-form {
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.form-group input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(120, 176, 245, 0.22);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
  color: #7f90a5;
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(120, 176, 245, 0.12);
  background: rgba(255,255,255,0.05);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-row input {
  accent-color: var(--gold);
}

.forgot-link {
  color: var(--gold2);
  font-weight: 700;
}

.login-submit {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, #446f9e, #223754);
  color: #f4f8fc;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(120, 176, 245, 0.14);
}

.login-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: rgba(8, 9, 12, 0.94);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.92rem;
}

.login-extra-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.alt-action {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(120, 176, 245, 0.16);
  background: rgba(255,255,255,0.03);
  color: var(--gold2);
  font-weight: 700;
  text-align: center;
  transition: 0.2s ease;
}

.alt-action:hover {
  background: rgba(120, 176, 245, 0.07);
  border-color: var(--line);
}

.alt-secondary {
  color: var(--text);
}

.login-bottom-text {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.login-bottom-text a {
  color: var(--gold2);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-copy {
    max-width: none;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .login-hero {
    padding: 40px 0 60px;
  }

  .login-card-head,
  .login-form {
    padding: 20px;
  }

  .login-copy h1 {
    font-size: 3.2rem;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-extra-actions {
    grid-template-columns: 1fr;
  }
}
.login-body .topbar .logo {
  display: flex;
  align-items: center;
  width: auto;
  max-width: 150px;
  flex-shrink: 0;
}

.login-body .topbar .logo img {
  width: auto !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: 90px !important;
  object-fit: contain;
}

.turnstile-wrap {
  width: 100%;
  margin: 6px 0 16px;
  display: flex;
  justify-content: center;
}

.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.success-alert {
  background: rgba(99, 179, 255, 0.14);
  border: 1px solid rgba(99, 179, 255, 0.45);
  color: #bfe4ff;
  box-shadow: 0 0 14px rgba(99, 179, 255, 0.12);
}

.error-alert {
  background: rgba(62, 94, 138, 0.14);
  border: 1px solid rgba(62, 94, 138, 0.45);
  color: #cfe5ff;
  box-shadow: 0 0 14px rgba(62, 94, 138, 0.12);
}

.login-link-button {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.single-action {
  width: 100%;
}

.footer {
  margin-top: 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #060c14, #02050b);
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 0.9fr;
  gap: 24px;
}

.footer-logo {
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: #dde6f0;
  text-transform: uppercase;
  font-style: italic;
}

.footer-logo span {
  color: #63b3ff;
}

.footer p,
.footer li,
.footer a {
  color: var(--muted);
  line-height: 1.6;
}

.footer h3 {
  text-transform: uppercase;
  color: var(--gold2);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.online {
  color: var(--green, #70c7ff);
  font-weight: 700;
}

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

@media (max-width: 720px) {
  .turnstile-wrap {
    justify-content: flex-start;
    transform: scale(0.94);
    transform-origin: left center;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.topbar {
  position: relative;
  z-index: 50;
}

.topbar-inner {
  min-width: 0;
}

.menu,
.play-now,
.logo {
  min-width: 0;
}

@media (max-width: 1100px) {
  .topbar-inner {
    gap: 12px;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(5, 6, 8, 0.98);
    box-shadow: var(--shadow);
  }

  .menu.menu-open {
    display: grid;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    text-align: left;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
    margin-inline: auto;
  }

  .topbar-inner {
    min-height: 74px;
  }

  .download-body .topbar .logo,
  .login-body .topbar .logo {
    max-width: 112px;
  }

  .download-body .topbar .logo img,
  .login-body .topbar .logo img {
    max-width: 112px !important;
    max-height: 66px !important;
  }

  .play-now {
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .login-page {
    min-height: auto;
    overflow: visible;
  }

  .login-bg,
  .login-overlay {
    position: fixed;
  }

  .login-hero {
    padding: 28px 0 42px;
  }

  .login-layout {
    gap: 16px;
  }

  .login-copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .login-card-head,
  .login-form {
    padding: 16px;
  }

  .form-group input {
    min-height: 52px;
    font-size: 16px;
  }

  .login-submit {
    min-height: 56px;
    font-size: 1rem;
  }

  .turnstile-wrap {
    justify-content: flex-start;
    overflow: hidden;
    transform: none;
  }

  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

@media (max-width: 380px) {
  .login-copy h1 {
    font-size: 2rem;
  }

  .cf-turnstile {
    transform: scale(0.82);
  }
}

:root {
  --bg: #02050b !important;
  --bg2: #08111c !important;
  --panel: rgba(7, 12, 20, 0.96) !important;
  --line: rgba(86, 146, 219, 0.34) !important;
  --line-soft: rgba(120, 176, 245, 0.16) !important;
  --gold: #67a8ff !important;
  --gold2: #dde6f0 !important;
  --red: #315a8c !important;
  --red2: #4b83c9 !important;
  --text: #eef4fb !important;
  --muted: #9aa8b9 !important;
  --green: #70c7ff !important;
  --blue: #63b3ff !important;
  --purple: #8fa8d8 !important;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.40) !important;
}

html, body, .login-body {
  color: #eef4fb !important;
  background:
    radial-gradient(circle at 78% 14%, rgba(69, 126, 208, 0.14), transparent 18%),
    radial-gradient(circle at 22% 26%, rgba(124, 168, 232, 0.10), transparent 16%),
    linear-gradient(180deg, #02050b 0%, #060c14 100%) !important;
}

.topbar {
  background: rgba(2, 5, 11, 0.98) !important;
  border-bottom: 1px solid rgba(86, 146, 219, 0.14) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
}

.logo, .footer-logo {
  color: #dde6f0 !important;
  text-shadow: 0 0 14px rgba(99, 179, 255, 0.16) !important;
}

.logo span, .footer-logo span {
  color: #63b3ff !important;
}

.login-overlay {
  background:
    radial-gradient(circle at 74% 24%, rgba(99, 179, 255, 0.18), transparent 16%),
    radial-gradient(circle at 84% 64%, rgba(49, 90, 140, 0.18), transparent 14%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.36)) !important;
}

.menu a,
.menu a:hover,
.menu a.active,
.login-kicker,
.form-group label,
.forgot-link,
.login-bottom-text a,
.footer h3,
.login-info-box strong,
.login-card-head h2 {
  color: #dde6f0 !important;
}

.login-copy h1 {
  color: #f4f8fc !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.42) !important;
}

.login-copy h1 span {
  color: #63b3ff !important;
}

.login-text,
.login-info-box span,
.login-card-head p,
.checkbox-row,
.login-bottom-text,
.footer p,
.footer li,
.footer a {
  color: #a6b4c4 !important;
}

.login-info-box,
.login-card {
  background: linear-gradient(180deg, rgba(12,18,28,0.96) 0%, rgba(8,13,22,0.96) 100%) !important;
  border: 1px solid rgba(86, 146, 219, 0.18) !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

.login-card-head {
  border-bottom: 1px solid rgba(120, 176, 245, 0.16) !important;
  background: linear-gradient(180deg, rgba(99, 179, 255, 0.08), rgba(0,0,0,0)) !important;
}

.login-submit,
.login-link-button,
.alt-action,
.play-now {
  background: linear-gradient(180deg, #446f9e 0%, #223754 100%) !important;
  color: #f4f8fc !important;
  border: 1px solid rgba(120, 176, 245, 0.26) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 22px rgba(0,0,0,0.24),
    0 0 18px rgba(99, 179, 255, 0.10) !important;
}

.alt-secondary {
  color: #eef4fb !important;
}

.login-divider::before,
.footer {
  border-color: rgba(86, 146, 219, 0.14) !important;
}

.login-divider::before {
  background: rgba(86, 146, 219, 0.14) !important;
}

.login-divider span {
  background: rgba(8, 13, 22, 0.96) !important;
  color: #9aa8b9 !important;
}

.form-group input {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(120, 176, 245, 0.22) !important;
  color: #f4f8fc !important;
}

.form-group input::placeholder {
  color: #7f90a5 !important;
}

.form-group input:focus {
  border-color: rgba(99, 179, 255, 0.60) !important;
  box-shadow: 0 0 0 3px rgba(99, 179, 255, 0.12) !important;
  background: rgba(255,255,255,0.04) !important;
}

.checkbox-row input {
  accent-color: #63b3ff !important;
}

.success-alert,
.error-alert,
.form-alert {
  background: rgba(62, 94, 138, 0.20) !important;
  border: 1px solid rgba(99, 179, 255, 0.22) !important;
  color: #d9e7f7 !important;
  box-shadow: none !important;
}

.footer {
  background: linear-gradient(180deg, #060c14, #02050b) !important;
}
