/* ======================================
   REGISTER.CSS - ESTILOS DE POSICIONAMIENTO
   ====================================== */

/* >>>>>>>>>>>>> IMPORTANTE: ESTE CSS SE APLICA DESPUÉS DE main.css <<<<<<<<<<<<< */

/* Resetear estilos del body para esta página */
body.register-page {
    min-width: 1200px; /* Mantiene tu diseño original */
}

/* Contenedor del ritual (misma posición que tu #main-slider) */
#register-ritual {
    position: absolute;
    top: 300px;
    left: 350px;
    width: 540px;
    min-height: 700px;
    z-index: 5;
}

/* Cuadro del formulario */
.ritual-container {
    width: 100%;
    height: auto;
    
    /* RUTA ABSOLUTA (desde la raíz) - MÁS SEGURA */
    background-image: 
        linear-gradient(135deg, rgba(10, 18, 28, 0), rgba(26, 51, 57, 0)),
        url('/assets/img/fondo-rituasl.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border: 2px solid #f3e702;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(243, 231, 2, 0.2);
    position: relative;
    overflow: hidden;
}
/* Runas de fondo flotantes */
.rune-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.rune {
    position: absolute;
    font-size: 120px;
    color: rgba(243, 231, 2, 0.04);
    font-family: 'Segoe UI', sans-serif;
    animation: float-rune 60s linear infinite;
}

.rune:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.rune:nth-child(2) { top: 20%; right: 20%; animation-delay: 10s; }
.rune:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 20s; }
.rune:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 30s; }
.rune:nth-child(5) { top: 50%; left: 50%; animation-delay: 40s; }

@keyframes float-rune {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(180deg) scale(1.1); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
}

/* ESTILOS DEL FORMULARIO (copiados de la versión anterior) */
.glitch-title {
    font-size: 48px;
    text-align: center;
    color: #f3e702;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 10px;
    position: relative;
    text-shadow: 0 0 20px rgba(243, 231, 2, 0.5);
    z-index: 2;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: transparent;
}

.glitch-title::before {
    animation: glitch-1 0.4s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch-title::after {
    animation: glitch-2 0.4s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-2px, 2px); }
    50% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: polygon(0 25%, 100% 25%, 100% 60%, 0 60%); transform: translate(2px, 2px); }
    50% { clip-path: polygon(0 70%, 100% 70%, 100% 95%, 0 95%); transform: translate(-2px, -2px); }
}

/* ======================================
   ESTILOS DEL FORMULARIO DE REGISTRO
   ====================================== */

/* Subtítulo */
.ritual-subtitle {
  text-align: center;
  color: #58bff4;
  font-size: 16px;
  margin-bottom: 40px;
  font-style: italic;
}

/* Mensajes de error/éxito */
.ritual-message {
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  animation: message-slide 0.5s ease;
  position: relative;
  z-index: 2;
}

@keyframes message-slide {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ritual-message.error {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(170, 0, 0, 0.25));
  border: 2px solid #ff0000;
  color: #ffaaaa;
}

.ritual-message.success {
  background: linear-gradient(135deg, rgba(47, 217, 107, 0.15), rgba(31, 122, 50, 0.25));
  border: 2px solid #2fd96b;
  color: #aaffaa;
}

.msg-icon {
  font-size: 20px;
}

/* Formulario */
.pact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.form-group label {
  display: block;
  color: #f3e702;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 45px 14px 15px;
  background: rgba(10, 18, 28, 0.7);
  border: 2px solid #1b2a3a;
  border-radius: 4px;
  color: #f1f0f0;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
  color: #6f8da5;
}

.input-wrapper .input-rune {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #58bff4;
  font-size: 20px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-wrapper.focused input {
  border-color: #f3e702;
  box-shadow: 0 0 15px rgba(243, 231, 2, 0.3);
  background: rgba(26, 51, 57, 0.6);
}

.input-wrapper.focused .input-rune {
  color: #f3e702;
  transform: translateY(-50%) rotate(360deg);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #9fbad0;
  font-size: 12px;
  font-style: italic;
}

/* Juramento (checkbox) */
.blood-oath {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.oath-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.oath-box {
  width: 20px;
  height: 20px;
  border: 2px solid #ff0000;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
  margin-top: 2px;
}

#oath:checked ~ .oath-label .oath-box {
  background: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.oath-box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #fff;
  font-weight: bold;
  transition: transform 0.2s ease;
}

#oath:checked ~ .oath-label .oath-box::after {
  transform: translate(-50%, -50%) scale(1);
}

.oath-text {
  color: #f1f0f0;
  font-size: 13px;
  line-height: 1.4;
}

#oath {
  position: absolute;
  opacity: 0;
}

/* Botón de enviar */
.seal-button {
  position: relative;
  padding: 18px 40px;
  background: linear-gradient(135deg, #ff0000, #aa0000);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 20px;
  z-index: 2;
}

.seal-button .button-text {
  position: relative;
  z-index: 2;
}

.seal-button .button-rune {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.button-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.seal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

.seal-button:hover .button-rune {
  color: #fff;
  transform: translateY(-50%) rotate(360deg);
}

.seal-button:hover .button-glow {
  opacity: 1;
}

.seal-button:active {
  transform: translateY(0);
}

.seal-button.sealing {
  animation: sealing-ritual 1s ease;
}

@keyframes sealing-ritual {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 0, 0, 1);
  }
}

/* Footer del formulario */
.ritual-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #1b2a3a;
  position: relative;
  z-index: 2;
}

.ritual-footer p {
  color: #9fbad0;
  margin-bottom: 50px;
}

.soul-link {
  color: #f3e702;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: all 0.3s ease;
}

.soul-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f3e702;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.soul-link:hover::after {
  transform: scaleX(1);
}

/* ======================================
   FOOTER - CORREGIDO
   ====================================== */

#master-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#register-ritual {
    position: relative; /* Cambiado de absolute */
    top: 0;
    left: 0;
    width: 750px;
    min-height: 600px;
    margin: 70px auto 50px; /* Centrado con margen superior e inferior */
    z-index: 5;
}

#main-footer {
    margin-top: auto !important; /* Empuja el footer hacia abajo */
    position: relative !important;
    top: 0 !important; /* Eliminado el top fijo */
    width: 100%;
}

/* Mover el header badge */
.header-badge {
    position: relative;
    left: -150px;
    top: 150px; /* NEGATIVO sube, POSITIVO baja */
}

.main-nav {
    position: relative !important;
    left: -200px !important; /* Ajusta este valor como necesites */
}
