@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* Theme-Basiswerte (werden von theme.css je nach Theme ueberschrieben) */
  --surface-rgb: 17, 17, 28;
  --well-rgb: 6, 6, 12;
  --ink-rgb: 255, 255, 255;
  --accent-rgb: 167, 139, 250;
  --accent-strong-rgb: 139, 92, 246;
  --accent2-rgb: 59, 130, 246;
  --primary-light: #ddd6fe;
  --on-accent: #110b20;
  --text-soft: #d7d2e5;
  --text-mute: #403a48;
  --danger-text: #fecdd3;
  --success-text: #bbf7d0;
  --warn-text: #fde68a;
  --info-text: #bfdbfe;

  --bg: #07070c;
  --bg-soft: #0d0d16;
  --panel: rgba(18, 18, 30, 0.72);
  --panel-strong: rgba(25, 25, 40, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(167, 139, 250, 0.28);

  --text: #f6f4ff;
  --text-dim: #a5a0ba;
  --text-faint: #6d6880;

  --primary: #a78bfa;
  --primary-strong: #8b5cf6;
  --primary-soft: rgba(167, 139, 250, 0.12);
  --danger: #fb7185;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --font-body: "Inter", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-strong-rgb), 0.17), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(var(--accent2-rgb), 0.10), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(var(--accent-rgb), 0.08), transparent 35%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-light);
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-hero {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow:
    0 0 30px rgba(var(--accent-strong-rgb), 0.35),
    inset 0 1px 0 rgba(var(--ink-rgb), 0.3);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: auto 0;
  padding: 50px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  margin: 0 0 24px;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.hero-feature {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(var(--ink-rgb), 0.025);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

.hero-feature strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.hero-feature span {
  color: var(--text-faint);
  font-size: 13px;
}

.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-card {
  width: min(100%, 480px);
  background: var(--panel);
  backdrop-filter: blur(26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.auth-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 8px;
}

.auth-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.language-switcher form {
  margin: 0;
}

.language-btn {
  min-width: 44px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(var(--ink-rgb), 0.035);
  color: var(--text);
  border-radius: 11px;
  cursor: pointer;
  transition: 0.18s ease;
}

.language-btn:hover {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.alert {
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.08);
  color: var(--danger-text);
  font-size: 14px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(var(--well-rgb), 0.7);
  color: var(--text);
  outline: none;
  transition: 0.18s ease;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus {
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.btn {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-strong));
  box-shadow: 0 12px 34px rgba(var(--accent-strong-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(var(--accent-strong-rgb), 0.32);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: #5865f2;
}

.btn-discord:hover {
  background: #6571f5;
  transform: translateY(-1px);
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.community-link {
  margin-top: 16px;
  display: block;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.community-link:hover {
  color: var(--primary);
}

.hero-footer {
  color: var(--text-faint);
  font-size: 12px;
}

@media (max-width: 980px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    padding: 28px 24px;
  }

  .hero-copy {
    padding: 44px 0 24px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 20px 18px 40px;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .auth-card-top {
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
  }

  .language-btn {
    flex: 1;
  }

  .hero-copy h1 {
    font-size: 44px;
  }
}