﻿@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

/* Estilos para el cuerpo */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bernada Regular', sans-serif;
    background: url('../img/Selvatura-3_0.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/* Estilos para el contenedor de login */
.login {
    position: relative;
    height: 600px;
    width: 360px;
    max-width: 405px;
    padding: 60px 60px;
    background: linear-gradient(270deg, #1E376C, #1E376C);
    background-size: cover;
    box-shadow: 0px 0px 24px #fff;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 600px;
}

/* Estilos para el formulario */
form {
    padding-top: 20px;
}

/* Estilos para el título h2 */
h2 {
    font-family: 'Bernada Regular', sans-serif;
    text-align: center;
    padding-left: 12px;
    font-size: 22px;
    text-transform: uppercase;
    padding-bottom: 5px;
    letter-spacing: 2px;
    display: inline-block;
    font-weight: 100;
    color: white;
}

    h2:first-child {
        padding-left: 0px;
    }

/* Estilos para los campos de texto */
.login__field {
    padding: 20px 0px;
    position: relative;
}

.login__icon {
    position: absolute;
    top: 30px;
    color: #1D7392; /* reemplazo */
}

.login__input {
    font-family: 'Bernada Regular', sans-serif;
    border: none;
    border-bottom: 2px solid #003466;
    background: none;
    padding: 10px;
    padding-left: 24px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    transition: .2s;
}

    .login__input:active,
    .login__input:focus,
    .login__input:hover {
        outline: none;
        border-bottom-color: #1D7392; /* reemplazo */
    }

/* Estilo para los campos de entrada autocompletados */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1E376C inset;
    -webkit-text-fill-color: white;
}

/* Estilo del triángulo */
.triangle-bottom {
    background-color: white;
    width: 100px;
    height: auto;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 50px solid #1E376c;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Estilo para la imagen */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

    .image-container img {
        max-width: 100px;
        width: 170px;
        height: auto;
    }

/* Estilos para el botón de inicio de sesión */
.login__submit {
    background: #fff;
    font-size: 14px;
    margin-top: 30px;
    padding: 16px 20px;
    border-radius: 26px;
    border: 1px solid #1D7392; /* reemplazo */
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    color: #003466;
    box-shadow: 0px 2px 2px #003466;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

    .login__submit:active,
    .login__submit:focus,
    .login__submit:hover {
        border-color: #003466;
        background: linear-gradient(90deg, #1D7392, #1D7392); /* reemplazo */
        outline: none;
        color: white;
        text-decoration: none;
    }

/* Estilos para el checkbox "Recuérdame" */
.custom-control-input[type="checkbox"]:checked + .custom-control-label::before {
    border-color: #1E376C;
    background-color: #1E376C;
}

.custom-control-input[type="checkbox"]:checked + .custom-control-label::after {
    content: '\2713';
    color: white;
}

.custom-control-label {
    padding-left: 5px;
    color: #fff;
}

.custom-control-input[type="checkbox"]:focus + .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(30, 55, 108, 0.25);
}


@media (max-width: 600px) {
    .login {
        width: 90%;
        padding: 20px;
        box-shadow: none;
    }

    .login__input {
        width: calc(100% - 34px);
    }

    .login__submit {
        margin-top: 20px;
    }

    .image-container {
        bottom: 30px;
    }
}
