/* Estilo del cuerpo y contenedor principal */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #fff;
}

.split-container {
    display: flex;
    min-height: 100vh;
    transition: all 0.5s ease-in-out;
}

.animate-slide-right {
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.animate-slide-reset {
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

.animate-slide-right-slow {
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    /* Más lento */
}

.left-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgb(255, 255, 255);
    transition: all 0.5s ease-in-out;
}

.form-card {
    background-color: #f4f6f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.right-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

#btn-login {
    background-color: #050c58;
}

#btn-login:hover {
    background-color: rgb(19, 16, 196);
}

.form-container {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .right-side {
        display: none;
    }

    .left-side {
        width: 100%;
    }
}

.social-bx {
    border: 1px solid #e4e4e4;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.social-bx:hover {
    background: #f5f5f5;
}

/* Estilo de la animación de deslizamiento */
.slide-left {
    transform: translateX(100%);
}

.slide-right {
    transform: translateX(0);
}

.hide {
    display: none;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* Estilo para la imagen que aparecerá al iniciar sesión correctamente */
.login-success-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    opacity: 0;
    animation: appearGrow 0.5s forwards;
    z-index: 1000;
}

@media (max-width: 767.98px){
    .login-success-image{
        top: 25%;
        left: 25%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: auto;
        animation: appearGrow 0.5s forwards;
        position: fixed;
    }
}

/* Animación para hacer crecer y aparecer la imagen */
@keyframes appearGrow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Clase para ocultar la imagen inicialmente */
.hide {
    display: none;
}
