/* BASE GENERAL */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at center, #1b1b2f 0%, #0f0f1c 100%);
  color: white;
  overflow-x: hidden;
}

/* ENCABEZADO Y PIE */
header.navbar {
  width: 100%;
  z-index: 1000;
}
footer.footer {
  width: 100%;
  background: #0f0f0f;
  color: #ccc;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 10;
}
.navbar .nav-link {
  color: #ddd;
  font-weight: bold;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover {
  color: #ffd26e;
}
.navbar-brand {
  font-weight: bold;
  color: #ffd26e;
}
.social-icon {
  font-size: 1.4rem;
  color: #ffd26e;
  transition: transform 0.2s ease;
}
.social-icon:hover {
  transform: scale(1.1);
  color: #ffffff;
}
.hover-primary:hover {
  color: #ffd26e !important;
}

/* CANVAS DE PARTÍCULAS */
canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* MAIN CENTRAL */
main {
  margin-top: 100px;
  margin-bottom: 100px;
  position: relative;
  z-index: 1;
}

/* CONTENEDOR Y FILAS */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* PANEL PRINCIPAL */
.panel {
  background: rgba(0, 0, 0, 0.65);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(88,101,242,0.4);
  color: #fff;
  margin-bottom: 20px;
}
.panel h1, .panel h2 {
  color: #ffd26e;
  margin-bottom: 15px;
}

/* FORMULARIOS */
.panel form label,
.form-wrapper label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: bold;
  color: #ffd26e;
}
.panel form input,
.form-wrapper input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
}
.panel form input:focus,
.form-wrapper input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
}
.panel form button,
.form-wrapper button {
  width: 100%;
  padding: 12px;
  background: #5865F2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}
.panel form button:hover,
.form-wrapper button:hover {
  background: #4752c4;
}

/* MENSAJES */
#register-message,
#login-message,
#reset-message {
  text-align: center;
  margin-top: 12px;
  color: #ffd26e;
  font-weight: bold;
}

/* FORM-WRAPPER USADO EN PÁGINAS SENCILLAS */
.form-wrapper {
  max-width: 420px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #5865F2;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
  color: white;
  z-index: 1;
}

/* BOTONES */
button, .btn-discord, .dl-btn, .nav-btn {
  padding: 12px 24px;
  background-color: #5865F2;
  color: white;
  font-size: 1.1em;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover, .btn-discord:hover, .dl-btn:hover, .nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.9);
}
.navbar-nav {
  gap: 12px;
}

.navbar-nav .nav-link {
  font-weight: bold;
  color: #ddd;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffd26e;
}
body {
  background: linear-gradient(-45deg, #1f2022, #212529, #1c1f24, #1f2022);
  background-size: 400% 400%;
  animation: animatedBG 15s ease infinite;
}

@keyframes animatedBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body.default-theme {
  background: linear-gradient(-45deg, #1c1f24, #2b2f35, #1a1d20);
  background-size: 400% 400%;
  animation: moveBG 15s ease infinite;
}

body.fire-theme {
  background: linear-gradient(-45deg, #8a1c1c, #ff3d3d, #ff7f50);
  background-size: 400% 400%;
  animation: moveBG 12s ease infinite;
}

body.mystic-theme {
  background: radial-gradient(circle, #3e3e66, #1c1f24);
}

body.custom-theme {
  background-color: #121212;
  animation: none;
}

@keyframes moveBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
