@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400');

body, html {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    height: 100%;
    background-image: url(../img/fondo.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #464646;
}

/* Estilo para el contenedor */
.container {
    position: absolute;
    top: 60px;
    left: 78%;
    transform: translateX(-50%);
    text-align: center;
    background-color: #fff;
    border-radius: 9px;
    border-top: 10px solid #fff;
    border-bottom: 10px solid #fff;
    width: 400px;
    height: auto; /* Ajuste automático de altura */
    padding: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Sombra alrededor del contenedor */
}

/* Media Query para móviles */
@media (max-width: 768px) {
    html, body {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        position: static;
        transform: none;
        width: 90%; /* Ajusta el ancho al 90% de la pantalla en móviles */
        max-width: 400px;
        margin: 0 auto; /* Centrado horizontal */
    }

    .box input[type="text"], .box input[type="password"], .btn1 {
        width: 100%; /* Asegura que los inputs y el botón ocupen el 100% del contenedor */
    }
}

/* Estilos para los títulos */
.box h4 {
    font-family: 'Source Sans Pro', sans-serif;
    color: black;
    font-size: 18px;
}

.box h4 span {
    color: black;
    font-weight: lighter;
}

.box h5 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    color: black;
    letter-spacing: 1.5px;
    margin-top: -15px;
}

/* Estilo para los inputs */
.box input[type="text"], .box input[type="password"] {
    display: block;
    margin: 20px auto;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 14px 10px;
    width: calc(100% - 40px); /* Asegura que los inputs no se salgan del contenedor */
    max-width: 320px; /* Ancho máximo */
    outline: none;
    color: black;
    transition: all .2s ease-out;
}

/* Placeholder */
::-webkit-input-placeholder {
    color: black;
}

/* Estilo para los inputs al enfocarse */
.box input[type="text"]:focus, .box input[type="password"]:focus {
    border: 1px solid #79A6FE;
}

/* Estilo del botón */
.btn1 {
    border: 0;
    background: #001394;
    color: #dfdeee;
    height: 35px;
    font-size: 12px;
    width: calc(100% - 40px); /* Ajusta el botón para que no se salga del contenedor */
    max-width: 320px;
    margin-top: 20px;
    transition: 0.3s;
    cursor: pointer;
}

/* Hover en el botón */
.btn1:hover {
    background: #001364;
}

/* Estilo para el mensaje de error */
.error {
    background: #ff3333;
    text-align: center;
    width: 337px;
    height: 20px;
    padding: 2px;
    border: 0;
    border-radius: 5px;
    margin: 10px auto 10px;
    color: white;
    display: none;
}

/* Estilo del pie de página */
.footer {
    color: #78797d;
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.footer .fa {
    color: #7f5feb;
}
