* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: url("/static/images/bg_intro3.89449d318bcf.jpg") no-repeat center center/cover fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f2f2;
  overflow: hidden;
}

.intro-container {
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 
    0 0 15px rgba(212, 162, 75, 0.5),
    0 0 30px rgba(212, 162, 75, 0.4),
    0 0 45px rgba(212, 162, 75, 0.3),
    0 0 60px rgba(212, 162, 75, 0.2),
    inset 0 0 15px rgba(212, 162, 75, 0.1);
  border: 2px solid rgba(212, 162, 75, 0.4);
  width: 420px;
  transition: all 0.5s ease;
  position: relative;
  animation: goldenGlow 3s ease-in-out infinite;
}

@keyframes goldenGlow {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(212, 162, 75, 0.5),
      0 0 30px rgba(212, 162, 75, 0.4),
      0 0 45px rgba(212, 162, 75, 0.3),
      0 0 60px rgba(212, 162, 75, 0.2),
      inset 0 0 15px rgba(212, 162, 75, 0.1);
    border-color: rgba(212, 162, 75, 0.4);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(240, 202, 116, 0.6),
      0 0 40px rgba(240, 202, 116, 0.5),
      0 0 60px rgba(240, 202, 116, 0.4),
      0 0 80px rgba(240, 202, 116, 0.3),
      inset 0 0 20px rgba(240, 202, 116, 0.15);
    border-color: rgba(240, 202, 116, 0.6);
  }
}

h1 {
  margin-bottom: 1.3rem;
  color: #d4a24b;
  text-shadow: 0 0 8px rgba(255, 200, 100, 0.6);
  letter-spacing: 1px;
  font-size: 1.2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input {
  padding: 0.7rem;
  border: 1px solid #555;
  background: rgba(30, 30, 30, 0.75);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 5px;
  outline: none;
}

input:focus {
  border-color: #d4a24b;
  box-shadow: 0 0 5px #d4a24b;
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: #d4a24b;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

button:hover {
  background: #f0ca74;
}

/* Fade cinematic */
.fade-in {
  animation: fadeIn 1.3s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Flash alb (login) */
#white-flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 1s ease;
}
#white-flash.active {
  opacity: 1;
}

/* Flash auriu (signup) */
#gold-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(255, 204, 102, 0.8) 0%,
    rgba(0, 0, 0, 0.9) 80%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
#gold-flash.active {
  animation: goldPulse 2.5s ease forwards;
}
@keyframes goldPulse {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  40% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.visible {
  opacity: 1;
  pointer-events: all;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(255, 200, 100, 0.25);
  animation: fadeIn 0.5s ease forwards;
}

.modal-content h2 {
  color: #f0ca74;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px rgba(255, 200, 100, 0.4);
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #555;
  background: rgba(30, 30, 30, 0.75);
  color: #fff;
  font-size: 0.95rem;
}

.modal-content input:focus,
.modal-content select:focus {
  border-color: #d4a24b;
  box-shadow: 0 0 5px #d4a24b;
  outline: none;
}

.modal-content select option {
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
}

.modal-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.modal-buttons button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-buttons button[type="submit"] {
  background: #f0ca74;
  color: #000;
}

.modal-buttons button[type="submit"]:hover {
  background: #d4a24b;
}

.modal-buttons button#close-signup {
  background: #333;
  color: #fff;
}

.modal-buttons button#close-signup:hover {
  background: #555;
}
