/* ------------------ Fondo principal con paleta corporativa ------------------ */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #0d0e10 0%, #090a0c 100%);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    position: relative;
}

/* FORMAS ABSTRACTAS SUAVES EN FONDO */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite alternate;
}

/* Esfera azul corporativa */
body::before {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at center, #325cb0 0%, #2a4c8d 100%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

/* Esfera plomiza */
body::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, #c3c3c5 0%, #e4e4e4 80%);
    bottom: -120px;
    right: -100px;
    animation-delay: 2s;
}

/* RESPLANDOR CENTRAL SUTIL */
.glow-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(227, 227, 230, 0.25), transparent 70%);
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.2;
    animation: pulse 7s infinite alternate ease-in-out;
    z-index: 0;
}

/* Animaciones suaves */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-25px) scale(1.05); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}


/* ------------------ Contenedor login ------------------ */
.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 70%;
    max-width: 1100px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

/* ------------------ Formulario ------------------ */
.form-section {
    flex: 1.2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: #fff;
}

.form-section h2 {
    text-align: center;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.form-section h3 {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
}

.logo img {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 70px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #00bfff;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 40px;
    color: #aaa;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: #00bfff;
}

/* ------------------ Ajuste inputs y botón ------------------ */
.form-section form {
    max-width: 450px;
    margin: 0 auto;
}

.input-group input {
    width: 100%;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
button:hover { transform: scale(1.02); }

.error-message {
    background: rgba(255,0,0,0.2);
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #bbb;
}

/* ------------------ Video ------------------ */
.video-section {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("tu-video-thumbnail.jpg") center/cover no-repeat;
    filter: blur(20px) brightness(40%);
    z-index: 0;
}

.video-section video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

/* ------------------ Botón instalación ------------------ */
#install-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #007bff !important;
    color: #fff !important;
    font-size: 15px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    width: auto !important;
    z-index: 9999 !important;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        width: 95%;
    }
    .video-section { display: none; }
}
