@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080808;
  --bg-soft: #111111;
  --panel: rgba(20, 20, 20, 0.82);
  --panel-solid: #151515;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #c9c9c9;
  --muted-dark: #8f8f8f;
  --red: #ff1b1b;
  --green: #2ea043;
  --green-light: #38c172;
  --blue: #3b5bff;
  --nav-height: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.navbar-container {
  max-width: 1420px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.navbar-logo img {
  height: 72px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.navbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.navbar-link {
  position: relative;
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.navbar-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 8px;
  width: 56%;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  transform: scaleX(1);
}

.navbar-link.active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.15);
}

.navbar-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.navbar-social a {
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.navbar-social a:hover {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.45));
}

.fa-youtube { color: #ff0000; }
.fa-instagram { color: #e4405f; }
.fa-patreon { color: #f96854; }
.fa-bluesky { color: #0091ff; }
.fa-x-twitter { color: #1da1f2; }
.fa-twitch { color: #9146ff; }
.fa-discord { color: #7289da; }

.login-page {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 60px) 6% 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 27, 27, 0.18), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(59, 91, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #070707, #111111 45%, #080808);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 27, 27, 0.22), transparent 68%);
  filter: blur(12px);
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff4c4c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-shell h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
}

.login-intro {
  max-width: 380px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.login-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 26px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  padding: 12px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-dark);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.auth-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.15);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 1px;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.field input::placeholder {
  color: #5f5f5f;
  letter-spacing: 1px;
}

.field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(46, 160, 67, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.18);
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: 0.68rem;
  letter-spacing: 1px;
}

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.form-message.error {
  display: block;
  border: 1px solid rgba(255, 27, 27, 0.4);
  background: rgba(255, 27, 27, 0.12);
  color: #ff8a8a;
}

.form-message.success {
  display: block;
  border: 1px solid rgba(46, 160, 67, 0.4);
  background: rgba(46, 160, 67, 0.12);
  color: #7ee2a0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, #2ea043, #32b857);
  box-shadow: 0 12px 30px rgba(46, 160, 67, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38c172, #2ea043);
  box-shadow: 0 16px 38px rgba(46, 160, 67, 0.4);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.oauth-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
  color: var(--muted-dark);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.oauth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--panel-solid);
}

.oauth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-oauth {
  min-width: 0;
  width: 100%;
  gap: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.btn-oauth:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-github:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-discord:hover {
  border-color: rgba(114, 137, 218, 0.6);
  box-shadow: 0 12px 30px rgba(114, 137, 218, 0.18);
}

.login-foot {
  margin: 22px 0 0;
  color: var(--muted-dark);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
}

.site-footer {
  padding: 22px;
  text-align: center;
  color: var(--muted-dark);
  background: #070707;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal > * {
  transform: translateY(36px);
  transition: transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal.active > * {
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --nav-height: 84px;
  }

  .navbar-container {
    padding: 0 18px;
  }

  .navbar-logo img {
    height: 58px;
  }

  .navbar-social {
    display: none;
  }

  .navbar-links {
    justify-content: flex-end;
  }

  .navbar-link {
    font-size: 15px;
    padding: 10px 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 78px;
  }

  .navbar-container {
    gap: 12px;
  }

  .navbar-logo img {
    height: 52px;
  }

  .navbar-links {
    gap: 4px;
  }

  .navbar-link {
    font-size: 13px;
    padding: 9px 8px;
  }

  .login-page {
    padding: calc(var(--nav-height) + 40px) 5% 60px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .oauth-buttons {
    grid-template-columns: 1fr;
  }
}
