/* ===========================================================
   ?? Tippilot Popups – 2025 Friendly Glass (FINAL)
   =========================================================== */

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 12000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.active {
  display: block;
  opacity: 1;
}

/* ===========================================================
   ?? Popup Box (zentriert, normale Größe)
   =========================================================== */
.auth-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 420px;
  max-width: 92%;
  padding: 36px 40px;
  border-radius: 20px;
  background: rgba(36, 46, 66, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  color: #e5e7eb;
  font-size: 15px;
  z-index: 12001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}

.auth-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Titel */
.auth-box h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 22px;
}

/* Formular */
.auth-form input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #3b465f;
  background: #2f3a55;
  color: #e5e7eb;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
  outline: none;
}

/* Button */
.auth-form button {
  width: 100%;
  padding: 13px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Close */
.close-btn {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.close-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Links */
.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #9ca3af;
}
.auth-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}

/* ===========================================================
   ?? Light Mode
   =========================================================== */
body:not(.dark-mode) .auth-box {
  background: rgba(248, 250, 252, 0.97);
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 55px rgba(0,0,0,0.15);
}

body:not(.dark-mode) .auth-form input {
  background: #ffffff;
  color: #1f2937;
  border-color: #cbd5e1;
}
body:not(.dark-mode) .auth-form input:focus {
  border-color: var(--accent);
}

/* ===========================================================
   ?? Feedback Popup
   =========================================================== */
.popup-feedback {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(36,46,66,0.95);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 13000;
  animation: fadeOut 6s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px);
  }
}

/* ===========================================================
   ?? Mobile
   =========================================================== */
@media (max-width: 600px) {
  .auth-box {
    width: 94%;
    padding: 26px 22px;
  }
  .auth-box h1 {
    font-size: 20px;
  }
}

/* ===========================================================
   ?? Scroll Lock
   =========================================================== */
body.popup-active {
  overflow: hidden !important;
  touch-action: none;
}
