/* -------- BASE -------- */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Cinzel', serif;
  color: white;
  overflow-x: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.main-header {
  background: rgba(0, 0, 0, 0.85);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #ffd700;
}

.hero {
  height: 100vh;
  padding-top: 240px;
  text-align: center;
  position: relative;
}

.hero p {
  font-size: 1.5em;
  text-shadow: none;
}

/* -------- PORTAL (Botón + Estado) -------- */
.portal-wrapper {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 350px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.join-now-btn-wrapper {
  width: 100%;
  text-align: center;
}

.double-btn {
  background: linear-gradient(90deg, #00ff99, #228b22, #00ff99); /* Verde fel */
  color: black;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 18px;
  font-family: 'Cinzel', serif;
  text-decoration: none;
  box-shadow: 0 0 25px #00ff99, 0 0 60px #00ff66, inset 0 0 10px #003300;
  animation: glowFel 2s ease-in-out infinite alternate;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.double-btn a,
.double-btn .logout-btn {
  color: black;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.double-btn a:hover,
.double-btn .logout-btn:hover {
  text-decoration: underline;
  color: #003300;
}

.portal-frame {
  margin-top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px #00ffaa;
  box-sizing: border-box;
}

/* -------- LOGIN & REGISTER -------- */
.auth-form-container {
  background: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border-radius: 14px;
  max-width: 400px;
  margin: 200px auto;
  box-shadow: 0 0 20px #00ffaa;
  box-sizing: border-box;
  color: white;
  font-family: 'Cinzel', serif;
}

.auth-form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #66ff99;
}

.auth-form-container input[type="text"],
.auth-form-container input[type="email"],
.auth-form-container input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: white;
  font-size: 16px;
  font-family: 'Cinzel', serif;
  box-shadow: inset 0 0 5px #00ffaa;
}

.auth-form-container input[type="submit"],
.auth-form-container button {
  background: linear-gradient(90deg, #66ff99, #00ffaa, #66ff99);
  color: black;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 15px #00ffaa;
  animation: glowBtn 2s ease-in-out infinite alternate;
  transition: background 0.3s;
}

.auth-form-container input[type="submit"]:hover,
.auth-form-container button:hover {
  background: linear-gradient(90deg, #00ffaa, #66ff99, #00ffaa);
}

/* -------- MODAL LOGIN / RECOVER -------- */
.modal-login {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-login .box {
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  color: white;
  font-family: 'Cinzel', serif;
  box-shadow: 0 0 20px #00ffaa;
  border: 2px solid #00ffaa;
  position: relative;
  box-sizing: border-box;
}

.modal-login h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #66ff99;
}

.modal-login input[type="text"],
.modal-login input[type="password"],
.modal-login input[type="email"] {
  width: 100%;
  margin: 10px 0 20px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: white;
  font-size: 16px;
  font-family: 'Cinzel', serif;
  box-shadow: inset 0 0 6px #00ffaa;
}

.modal-login button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #66ff99, #00ffaa, #66ff99);
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 10px;
  font-size: 17px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffaa;
  animation: glowBtn 2s ease-in-out infinite alternate;
  transition: background 0.3s;
}

.modal-login button:hover {
  background: linear-gradient(90deg, #00ffaa, #66ff99, #00ffaa);
  color: #001100;
}

.modal-login .close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

.modal-login .login-error,
.modal-login .recover-error {
  color: #ff5555;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.modal-login .recover-success {
  color: #00ff6a;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.modal-login a.toggle-link {
  color: #66ffcc;
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
  text-decoration: underline;
  text-align: center;
  width: 100%;
  font-family: 'Cinzel', serif;
}

/* -------- ANIMACIONES -------- */
@keyframes glowBtn {
  from {
    box-shadow: 0 0 20px #00ff99, 0 0 40px #00ffaa;
  }
  to {
    box-shadow: 0 0 28px #00ffcc, 0 0 50px #00ffcc;
  }
}

/* -------- NEWS -------- */
.news-section, .sidebar {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 2rem;
  margin: 0 auto;
  border-radius: 10px;
  max-width: 900px;
}

.news-section {
  margin-top: 700px;
  margin-bottom: -800px;
}

.double-btn a {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: bold;
  color: black;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
@keyframes glowFel {
  from {
    box-shadow: 0 0 25px #00ff99, 0 0 60px #00ff66, inset 0 0 10px #003300;
  }
  to {
    box-shadow: 0 0 35px #00ffcc, 0 0 75px #00ffaa, inset 0 0 14px #004400;
  }
}
