@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-image: url('/imgs/fondo.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Añade un padding para evitar que el contenido choque en dispositivos pequeños */
}

.form-container {
    width: 450px;
    min-width: 400px; /* Limita el tamaño máximo en pantallas grandes */
    background-color: rgba(0, 0, 0, 0.66);
    padding: 20px;
    border-radius: 17px;
    backdrop-filter: blur(5px);
    border: 5px solid rgba(0, 43, 64, 0.49);
    box-shadow: 0 0 40px rgb(2, 129, 168);
    text-align: center;
}

.form-container h3 {
    font-size: 32px; /* Ajusta el tamaño del texto para móviles */
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 20px;
    font-size: 18px; /* Reduce el tamaño del texto */
    font-weight: 600;
    color: #fff;
}

input {
    margin-top: 10px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid #38363654;
    border-radius: 5px;
    width: 100%;
    color: white;
}

input:hover {
    background: #434343;
    transition: all 0.5s ease;
}

input:focus {
    box-shadow: 0px 2px 2px #0000002b, 0px 5px 10px #00000036;
    background: #434343;
}

.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap; /* Permite que los elementos se acomoden en varias líneas si es necesario */
}

button {
    margin-top: 30px;
    width: 100%;
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid #38363654;
    border-radius: 5px;
    color: #e1e1e1;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #0787F7;
    transition: all 0.5s ease;
}

.social-text {
    font-size: 16px;
    color: #fff;
    margin-top: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    background-color: #444;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.social-icon:hover i {
    color: #fff;
}

.login-text, .signup-text {
    color: white;
    font-size: 14px;
    margin-top: 20px;
}

.login-text a, .signup-text a {
    color: #629677;
    text-decoration: none;
    font-weight: 600;
}

.login-text a:hover, .signup-text a:hover {
    color: #4b7c58;
    text-decoration: underline;
}
/* Estilo responsivo */
@media (max-width: 768px) {
    .form-container {
        width: 90% ; /* Ajuste dinámico del ancho */
        padding: 15px;
        border-width: 3px;
    }

    h3 {
        font-size: 30px; /* Reduce el tamaño del texto */
    }

    input {
        font-size: 16px; /* Ajuste de fuente para móviles */
        padding: 10px;
    }

    label {
        font-size: 18px;
    }

    button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h3 {
        font-size: 25px;
    }

    .form-container {
        border-width: 2px;
        width: 100%;
    }

    input {
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }
}