:root {
  --bg-dark: #0d1117;
  --bg-glass: #0a0f1e;
  --bg-glow: #0a0f1e20;
  --primary: #ffffff;
  --primary-dark: #d6dde7;
  --text-light: #dbeafe;
  --text-muted: #94a3b8;
  --accent-gold: #ffd700;
  --accent-red: #ff6b6b;
  --accent-green: #51cf66;

  --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: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #0d1117 100%);
  overflow-x: hidden;
}

.background {
  background-image: 
    url('img/background_advent.png'),
    url('img/backround_advent.png'),
    url('/img/background_advent.png'),
    url('/img/backround_advent.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: brightness(0.3) saturate(1.1) contrast(1.2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(13, 17, 23, 0.6), rgba(0, 0, 0, 0.5));
  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;
}

.header {
  margin-bottom: 3vh;
}

.logo-container {
  margin-bottom: 1.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container i {
  font-size: 3.5rem;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.glass h1 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.75vh;
  letter-spacing: 0.5px;
  word-break: break-word;
  line-height: 1.3;
}

.accent {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-light);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  margin-bottom: 0.75vh;
  word-wrap: break-word;
}

.description {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin-bottom: 2.5vh;
  word-wrap: break-word;
  line-height: 1.6;
}

.glass p {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin-bottom: 2vh;
  word-wrap: break-word;
}

/* Wartungsmodus-Hinweis für Login */
.maintenance-notice {
  margin: 2vh 0;
  padding: 1.25vh 1.75vw;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #fbbf24;
  animation: loginMaintenancePulse 2s infinite;
  backdrop-filter: blur(10px);
}

.maintenance-notice i {
  font-size: 1.3rem;
  margin-top: 0.1rem;
  animation: loginMaintenanceRotate 3s linear infinite;
  flex-shrink: 0;
}

.maintenance-notice div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  flex: 1;
}

.maintenance-notice strong {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: #f59e0b;
}

.maintenance-notice span {
  font-size: var(--font-size-sm);
  color: #fbbf24;
  opacity: 0.9;
}

@keyframes loginMaintenancePulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  }
}

@keyframes loginMaintenanceRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: var(--primary);
  text-decoration: none;
  padding: 1.25em 2em;
  border-radius: 16px;
  font-weight: 600;
  font-size: var(--font-size-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: nowrap;
  line-height: 1;
  margin: 2.5rem 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.discord-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.discord-btn:hover::before {
  left: 100%;
}

.discord-btn:hover {
  background: linear-gradient(135deg, #4752C4, #5865F2);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(88, 101, 242, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.discord-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.discord-icon {
  font-size: 1.5em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-arrow {
  font-size: 1em;
  opacity: 0.8;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

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

.discord-btn:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.feature-item span {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.info-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.info-section i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-section div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  text-align: left;
}

.info-section strong {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-light);
  display: block;
}

.info-section span {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Alert Messages */
.alert {
  padding: 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
  animation: slideInDown 0.5s ease-out;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 2px solid;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
  border-color: rgba(220, 53, 69, 0.5);
  color: #f87171;
}

.alert i {
  font-size: 1.3em;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #dc3545;
}

.alert div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  text-align: left;
}

.alert strong {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: #dc3545;
  display: block;
}

.alert span {
  font-size: var(--font-size-sm);
  color: #f87171;
  line-height: 1.5;
}

.powered-by {
  margin-top: 3vh;
  padding-top: 2vh;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powered-by span {
  opacity: 0.8;
}

.powered-by strong {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.powered-by i {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Animations */
@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 h1 {
    font-size: 1.5rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-item {
    padding: 1rem;
  }

  .logo-container i {
    font-size: 3rem;
  }
}

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

  .discord-btn {
    font-size: 1rem;
    padding: 1.1em 1.5em;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  .btn-arrow {
    display: none;
  }

  .logo-container i {
    font-size: 2.5rem;
  }

  .info-section {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .info-section div {
    text-align: center;
    align-items: center;
  }
}

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

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

  .features {
    gap: 0.5rem;
  }

  .feature-item {
    padding: 0.75rem 0.5rem;
  }

  .feature-item i {
    font-size: 1.25rem;
  }

  .powered-by {
    flex-direction: column;
    gap: 0.25rem;
  }
}
