:root {
  --bg-dark: #0d1117;
  --bg-glass: #0a0f1e;
  --bg-glow: #0a0f1e20;
  --primary: #ffffff;
  --primary-dark: #d6dde7;
  --text-light: #dbeafe;
  --text-muted: #94a3b8;

  --font-size-base: clamp(0.9rem, 1.5vw, 1.1rem);
  --font-size-lg: clamp(1.2rem, 2vw, 2rem);
  --font-size-sm: clamp(0.75rem, 1vw, 0.95rem);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.background {
  background-image: url('/img/login.png');
  background-size: cover;
  background-position: center;
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: brightness(0.4) saturate(1.2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(13, 17, 23, 0.67), rgba(0, 0, 0, 0.561));
  z-index: 1;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5vh 4vw;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  border: 3px solid #1A233A;
  border-radius: 24px;
  box-shadow: 0 0 40px var(--bg-glow);
  padding: 4vh 3vw;
  text-align: center;
  color: var(--text-light);
  max-width: 540px;
  width: 100%;
  animation: fadeInUp 0.7s ease-out forwards;
  transition: all 0.3s ease;
}

.glass h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 1vh;
  letter-spacing: 0.8px;
  word-break: break-word;
}

.accent {
  color: var(--primary);
}

.glass p {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin-bottom: 3vh;
  word-wrap: break-word;
}
.discord-btn {
  background-color: var(--primary);
  color: hwb(216 5% 91%);
  text-decoration: none;
  padding: 1.2em 1.8em;
  border-radius: 14px;
  font-weight: 600;
  font-size: var(--font-size-base);
  display: inline-flex;
  align-items: center;         /* vertikale Zentrierung */
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 24px #ffffff83;
  transition: all 0.3s ease;
  flex-wrap: nowrap;
  line-height: 1;              /* saubere Text-/Icon-Ausrichtung */
}

.discord-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px #ffffff9d;
}

.discord-icon {
  font-size: 1.4em;            /* leicht verkleinert für bessere Ausrichtung */
  line-height: 1;              /* verhindert Höhenverschiebung */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0.05em;                 /* minimaler Feintuning-Offset */
  transition: transform 0.3s ease;
}

.discord-btn:hover .discord-icon {
  transform: rotate(6deg) scale(1.15);
}

.powered-by {
  margin-top: 3vh;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  animation: fadeInUp 1.2s ease-out 0.6s forwards;
  opacity: 0;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-base);
  animation: slideInDown 0.5s ease-out;
  border-left: 4px solid;
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #28a745;
  border-left-color: #28a745;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
  border-left-color: #dc3545;
}

.alert i {
  margin-right: 0.5rem;
  font-size: 1.1em;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1024px) {
  .glass {
    padding: 3.5vh 4vw;
  }

  .discord-btn {
    padding: 1em 1.5em;
  }
}

@media (max-width: 768px) {
  .glass {
    padding: 3vh 6vw;
  }

  .glass h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .glass {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .discord-btn {
    font-size: 1rem;
    padding: 0.9em 1.3em;
    gap: 10px;
  }

  .discord-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .glass h2 {
    font-size: 1.25rem;
  }

  .discord-btn span {
    font-size: 0.9rem;
  }
}
