/* ====================================
   Root Variablen
==================================== */
:root {
  --bg-dark: #1a1b2f;
  --card-bg: #2c2a4d;
  --accent: #fbbf24;
  --text-light: #f3f4f6;
  --text-muted: #d1d5db;
  --shadow: rgba(0, 0, 0, 0.4);
  --radius: 1rem;
}

/* ====================================
   Grundlayout
==================================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* ====================================
   Hauptcontainer (zentriert)
==================================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1b2f 0%, #111127 100%);
}

/* ====================================
   Auth Card
==================================== */
.auth-card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 25px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Glow-Effekt */
.auth-card-glow {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.15), transparent 65%);
  animation: glowMove 8s linear infinite;
  z-index: 0;
}

.auth-card * {
  position: relative;
  z-index: 1;
}

@keyframes glowMove {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

/* ====================================
   Überschrift
==================================== */
.auth-card h2 {
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 2rem;
}

/* ====================================
   Alert Box
==================================== */
.alert {
  background-color: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  padding: 0.8rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ====================================
   Input Fields
==================================== */
.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 50px;
  border: 1px solid #374151;
  background-color: #1f2937;
  color: var(--text-light);
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  outline: none;
}

/* Chrome Autofill Fix */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #1f2937 inset !important;
  -webkit-text-fill-color: var(--text-light) !important;
}

/* ====================================
   Buttons
==================================== */
.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
  color: #1a1b2f;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.25);
  transition: all 0.3s ease;
  background-size: 200% 100%;
  background-position: left center;
}

.auth-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(251, 191, 36, 0.35);
}

/* ====================================
   Links
==================================== */
.auth-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.95rem;
}

.link-light {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.link-light:hover {
  background-color: var(--accent);
  color: #1a1b2f;
  transform: scale(1.03);
}

.link-warning {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.link-warning:hover {
  background-color: var(--accent);
  color: #1a1b2f;
  transform: scale(1.03);
}

/* ====================================
   Responsives Verhalten
==================================== */
@media (max-width: 768px) {
  .auth-card {
    padding: 2.5rem 1.8rem;
    max-width: 360px;
  }
  .auth-card h2 {
    font-size: 1.8rem;
  }
  .auth-btn {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
    width: 90%;
  }
  .auth-card h2 {
    font-size: 1.6rem;
  }
  .input-wrapper input {
    padding: 12px 14px 12px 40px;
    font-size: 0.95rem;
  }
  .input-icon {
    left: 12px;
    font-size: 1rem;
  }
  .auth-links a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}
