
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e5e5e5;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    flex-direction: row;
}

.form-section {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
}

.title-create {
    text-align: left;
}
/* info-section */
.info-section {
    background-color: #3269d7;
    color: white;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}


.info-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.info-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    transition: opacity 0.5s ease;
}

.indicator-dots {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.indicator-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator-dots .dot.active {
    background-color: white;
}
/* fin info-section */

.login-section, .register-section {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-section h2, .register-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 14px;
    color: #333;
}

.avis {
    text-align: center;
}

.cambio-form {
    text-align: center;
}

input[type="text"], input[type="email"], input[type="password"] {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.forgot-password {
    font-size: 12px;
    color: #0066cc;
    text-decoration: none;
    align-self: flex-end;
}

.login-button, .register-button {
    background-color: #3269d7;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.alternative-options button {
    background-color: #f2f2f2;
    color: #333;
    padding: 8px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.terms {
    font-size: 12px;
    color: #777;
    text-align: center;
}

.terms a {
    color: #0066cc;
    text-decoration: none;
}

/* Mensaje correo o contraseña incorrecta */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* Efecto de shake para el mensaje de error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    animation: shake 0.8s ease-in-out;
}
/* Responsivo para pantallas móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .info-section {
        padding: 20px;
    }

    .login-section, .register-section {
        padding: 20px;
    }

    .container img {
        width: 100px;
        margin-left: 60%;    }

    .login-section h2, .register-section h2, .info-content h2 {
        font-size: 20px;
    }

    .info-content p, .terms {
        font-size: 14px;
    }

    input[type="text"], input[type="password"] {
        font-size: 13px;
    }
}