@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
    background-color: #f2f2f2;
    background: linear-gradient(to right, #f9f9f9, #f2f2f2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

/* Botón 'Atrás' pegado a la izquierda */
.atras--actions {
    position: absolute;
    top: 20px;
    left: 15px; /* Pegado a la izquierda */
    margin-left: 0; /* Sin márgenes a la izquierda */
    z-index: 10; /* Asegurar que el botón esté por encima de otros elementos */
}

/* Estilo y animación del botón */
.button.atras-page--action {
    background-color: #f299a9;
    color: #fff;
    border: none;
    padding: 0.75rem 3.5rem;
    font-size: 1.125em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Efecto hover: Cambia el color del botón y agrega sombra */
.button.atras-page--action:hover {
    background-color: #845c72;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilo y animación del icono SVG de la flecha */
.button.atras-page--action #arrow-svg {
    transition: transform 1s ease-in-out; /* Asegura una transición suave */
    margin-right: 10px; /* Separar la flecha del texto */
}

/* Efecto hover del icono SVG */
.button.atras-page--action:hover #arrow-svg {
    transform: translateX(-15px) rotate(-720deg); /* Mueve la flecha y la rota */
}

/* Efecto clic del botón */
.button.atras-page--action:active {
    transform: scale(0.95); /* Reduce ligeramente el tamaño al hacer clic */
}


.container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    padding: 20px;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

.container a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: #0098DA;
    color: #fff;
    font-size: 14px;
    padding: 12px 50px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button.hidden {
    background-color: transparent;
    border-color: #0098DA;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;    
}

.container input {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin: 8px 0;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 50px 0 0 50px;
    z-index: 1000;    
}
@media (max-width: 600px) {
    .toggle-container {
        zoom: 50%;
    }
    .container form {
        zoom: 50%;
    }
    .container {
        min-height: 300px;
    }


}


.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 50px 50px 0;
}

.toggle {
    background-color: #494a4a;
    height: 100%;
    background: linear-gradient(to right, #0098DA, #000000);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);    
}

.container.active .toggle-right {
    transform: translateX(200%);
}

.registration-fail {
    background-color: #C71585; /* Color de fondo suave para el éxito */
    color: #ffffff; /* Color de texto verde oscuro */
    border: 0px solid #494a4a; /* Borde verde claro */
    border-radius: 8px; /* Bordes redondeados */
    padding: 10px; /* Aumenta el espaciado interno */
    margin: 10px 0; /* Margen superior e inferior */
    font-size: 14px; /* Tamaño de fuente */
    text-align: center; /* Centrar el texto */
    animation: fadeIn 0.5s; /* Añadir una animación de aparición */
    position: absolute; /* Cambiar a posición absoluta */
    top: 5px; /* Ajusta esto según sea necesario */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Alinea correctamente al centro */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
    width: 80%; /* Ajusta el ancho para evitar líneas múltiples */
    max-width: 400px; /* Establece un ancho máximo si es necesario */

}

.registration-success {
    background-color: #4169E1; /* Color de fondo suave para el éxito */
    color: #ffff; /* Color de texto verde oscuro */
    border: 0px solid #494a4a; /* Borde verde claro */
    border-radius: 8px; /* Bordes redondeados */
    padding: 0px; /* Aumenta el espaciado interno */
    margin: 10px 0; /* Margen superior e inferior */
    font-size: 14px; /* Tamaño de fuente */
    text-align: center; /* Centrar el texto */
    animation: fadeIn 0.5s; /* Añadir una animación de aparición */
    position: absolute; /* Cambiar a posición absoluta */
    top: 5px; /* Ajusta esto según sea necesario */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Alinea correctamente al centro */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
    width: 80%; /* Ajusta el ancho para evitar líneas múltiples */
    max-width: 400px; /* Establece un ancho máximo si es necesario */

}
.registration-fail p {
    margin: 0px 0;
    color: #ffff; /* Cambiar el color del texto a blanco */
    /*font-weight: bold;  Establecer el texto en negrita */
}

.registration-success {

    color: #ffff; /* Cambiar el color del texto a blanco */
    /*font-weight: bold;  Establecer el texto en negrita */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fondo semitransparente del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
    overflow: hidden;
}

/* Contenido del modal */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centramos el modal */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

/* Botón cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #555;
}

/* Botón aceptar */
.modal-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #0056b3;
}



