/* Fondo Vanta.js - ÚNICO CAMBIO ESENCIAL */
#fondo-vanta {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* TODO LO DEMÁS PERMANECE EXACTAMENTE IGUAL A TU VERSIÓN ORIGINAL */
body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77);
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
}

.logo-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  perspective: 1000px; /* Nuevo: Para efecto 3D */
}

.logo {
  width: 400px; /* Aumenté el tamaño */
  height: auto;
  animation: 
    pulse 3s infinite ease-in-out,
    rotate 15s infinite linear,
    glow 2s infinite alternate;
  filter: drop-shadow(0 0 15px #00d4ff);
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.1) rotateY(20deg);
  filter: drop-shadow(0 0 25px #ff4500);
}

.logo-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px; /* Aumenté el tamaño */
  height: 250px;
  background: radial-gradient(circle, rgba(0,212,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: 
    scanPulse 3s infinite ease-in-out,
    rotateBackground 20s infinite linear;
  z-index: -1;
}

/* Nuevas animaciones */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes glow {
  from { filter: drop-shadow(0 0 15px #00d4ff); }
  to { filter: drop-shadow(0 0 25px #ff4500); }
}

@keyframes rotateBackground {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scanPulse {
  0%, 100% { opacity: 0.6; width: 250px; height: 250px; }
  50% { opacity: 0.9; width: 270px; height: 270px; }
}

.company-name {
  margin-top: 25px;
  font-size: 2.5rem; /* Aumenté el tamaño */
  font-weight: bold;
  color: #00d4ff;
  text-shadow: 
    0 0 10px #00d4ff, 
    0 0 20px #0077b6,
    0 0 30px #003366;
  animation: 
    textGlow 2s infinite alternate,
    textFloat 4s infinite ease-in-out;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes textGlow {
  from { text-shadow: 0 0 10px #00d4ff, 0 0 20px #0077b6; }
  to { text-shadow: 0 0 20px #00d4ff, 0 0 40px #0077b6, 0 0 60px #003366; }
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}   

.form-container {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    width: 350px;
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        inset 0 0 10px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(8px);
    animation: fadeIn 1s ease-out;
}

.form-container h2 {
    font-size: 1.8rem;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
    position: relative;
    padding-bottom: 10px;
}

.form-container h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 85%;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

/* Iconos para los campos */
.form-group::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.form-group:nth-child(1)::before {
    background-image: url('imagenes/icon-user.png'); /* Icono de usuario */
}

.form-group:nth-child(2)::before {
    background-image: url('imagenes/icon-password.png'); /* Icono de contraseña */
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff, #0077b6);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background: linear-gradient(135deg, #00a8cc, #005f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.6);
}

.login-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: rotate(30deg);
    transition: all 0.3s ease;
}

.login-button:hover::after {
    left: 120%;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.forgot-password a:hover {
    color: #ff4500;
}

.forgot-password a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff4500;
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px #f4a261, 0 0 20px #e76f51;
    }
    to {
        text-shadow: 0 0 20px #f4a261, 0 0 30px #e76f51;
    }
}

@keyframes glowLogo {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 10px #f4a261);
    }
    to {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px #e76f51);
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }
    
    .logo-section {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .form-container {
        width: 90%;
        min-width: auto;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
}