﻿@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

/* Reseteo y estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

/* Configuración del tamaño y eliminación del scroll */
html, body {
    font-family: 'Bernada Regular', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Bernada Regular', sans-serif;
    background-image: url('../img/Selvatura-3_0.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Contenedor principal para centrar el contenido */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Estilos para la pantalla del login */
.screen {
    background: linear-gradient(90deg, #1D7392, #1D7392);
    position: relative;
    height: 600px;
    width: 360px;
    box-shadow: 0px 0px 24px #fff;
}

.screen__content {
    z-index: 1;
    position: relative;
    height: 100%;
}

/* Formas de fondo */
.screen__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    clip-path: inset(0 0 0 0);
}

.screen__background__shape {
    transform: rotate(45deg);
    position: absolute;
}

.screen__background__shape1 {
    height: 520px;
    width: 520px;
    background-color: white;
    background-size: cover;
    background-position: center;
    top: -50px;
    right: 120px;
    border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
    height: 220px;
    width: 220px;
    background: linear-gradient(270deg, #1E376C, #1E376C);
    top: -172px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg, #1E376C, #1E376C);
    top: -24px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape4 {
    height: 400px;
    width: 200px;
    background: linear-gradient(270deg, #1E376C, #1E376C);
    top: 420px;
    right: 50px;
    border-radius: 60px;
}

/* Estilos para el contenedor del formulario de login */
.login {
    width: 320px;
    padding: 30px;
    padding-top: 156px;
}

/* Campos de entrada del formulario */
.login__field {
    padding: 20px 0px;
    position: relative;
}

.login__field--remember {
    padding: 40px 0px 20px 0px;
    margin-top: 10px;
}

.login__input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    color: #003466;
}

.login__icon {
    position: absolute;
    top: 30px;
    color: #003466;
}

.login__field--remember .login__icon {
    display: none;
}

.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: #003466;
    width: 75%;
    transition: .2s;
}

.login__input:active,
.login__input:focus,
.login__input:hover {
    outline: none;
    border-bottom-color: #1D7392;
}

/* Botón de envío del formulario */
.login__submit {
    background: #fff;
    font-size: 14px;
    margin-top: 30px;
    padding: 16px 20px;
    border-radius: 26px;
    border: 1px solid #1D7392;
    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;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
    border-color: #003466;
    background: linear-gradient(90deg, #1D7392, #1D7392);
    outline: none;
    color: white;
}

/* Icono del botón */
.button__icon {
    font-size: 24px;
    margin-left: auto;
    color: #1D7392;
}

.social-login {
    position: absolute;
    height: 140px;
    width: 160px;
    text-align: center;
    bottom: 0px;
    right: 0px;
    color: #fff;
}

.h2 {
    font-family: 'Bernada Regular', sans-serif;
    margin-top: 30px;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-login__icon {
    padding: 20px 10px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0px 0px 8px #1D7392;
}

.social-login__icon:hover {
    transform: scale(1.5);
}

.social-icons img {
    width: 90px;
    height: auto;
    display: block;
    margin: 0px auto;
    margin-right: 30px;
    margin-top: 0px;
}

/* 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: #003466;
}

.custom-control-input[type="checkbox"]:focus + .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(30, 55, 108, 0.25);
}

a.help-link {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

a.help-link:hover {
    color: #1D7392;
}

/* Responsive */
@media (max-width: 600px) {
    .screen {
        width: 90%;
        height: auto;
        padding: 20px;
        box-shadow: 0px 0px 24px #fff;
    }

    .screen__background__shape1,
    .screen__background__shape2,
    .screen__background__shape3,
    .screen__background__shape4 {
        display: none;
    }

    .login {
        width: 100%;
        padding: 20px;
        padding-top: 100px;
    }

    .login__input {
        width: calc(100% - 34px);
    }

    .social-login {
        width: 100%;
        height: auto;
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    .social-icons {
        flex-direction: column;
        align-items: center;
    }

    .social-icons img {
        width: 70px;
    }
}

/* Enlaces */
a {
    color: white;
    text-decoration: none;
}