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

:root {
  --bg: #08111f;
  --surface: rgba(15, 24, 42, 0.9);
  --surface-2: rgba(36, 53, 86, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --text: #eef2ff;
  --text-muted: #9ab0d6;
  --accent: #7c6cff;
  --accent-strong: #5b7cff;
}

body {
  background:
    radial-gradient(circle at top left, rgba(124, 108, 255, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 28%),
    linear-gradient(180deg, #0a1222 0%, #08111f 46%, #070d18 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.login-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 24, 42, 0.96), rgba(10, 18, 34, 0.94));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 2.4rem 2.1rem;
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124, 108, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.logo {
  position: relative;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 30ch;
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #6c7cff 0%, #5865f2 100%);
  color: #fff;
  text-decoration: none;
  padding: 0.92rem 1.5rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  width: 100%;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 18px 34px rgba(88, 101, 242, 0.28);
}

.discord-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.discord-btn:active {
  transform: scale(0.985);
}

.error {
  color: #ffb3c4;
  font-size: 0.86rem;
  background: rgba(243, 109, 141, 0.14);
  border: 1px solid rgba(243, 109, 141, 0.22);
  border-radius: 14px;
  padding: 0.72rem 1rem;
  width: 100%;
  text-align: left;
}

.error.hidden {
  display: none;
}

.privacy-note {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: #d5dff8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.privacy-note h2 {
  font-size: 0.9rem;
  color: #f4f7ff;
  margin-bottom: 0.48rem;
}

.privacy-note a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 13, 24, 0.9);
  backdrop-filter: blur(18px);
  padding: 1rem 1.25rem;
}

.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-nav a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .login-page {
    padding: 1.2rem 1rem;
  }

  .login-card {
    padding: 1.55rem 1.2rem;
    border-radius: 24px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
