*{
    box-sizing: border-box;
    font-family: monospace;
}

body{
    margin: 0;
    font-family: sans-serif;
    background-position: center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

main{
    max-width: 700px;
    width: 90%;
    margin: auto;
    padding: 40px;
}

.form_acceso{
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
    
    margin: auto;
    width: 95%;
    max-width: 500px;
    background: rgb(132,132,132,0.9);
    padding: 20px;
}

.form__title{
    grid-column: span 2;
    
    margin-top: 0;
    font-size: 1.7em;
    text-align: center;
}

.form__label{
    display: block;
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
}

.form__grupo-input{
    position: relative;
}

.form__input{
    width: 100%;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 3px;
    height: 45px;
    line-height: 45px;
    padding: 0 40px 0 10px;
    transition: .3s ease all;
}

.form__input:focus{
    border: 3px solid #0075FF;
    outline: none;
    box-shadow: 3px 0px 30px rgba(163,163,163, 0.4);
}

.form__input-error{
    font-size: 12px;
    margin-bottom: 0;
    display: none;
}

.form__input-error-activo{
    display: block;
}

.form__validacion-estado{
    position: absolute;
    right: 10px;
    bottom: 15px;
    z-index: 100;
    font-size: 16px;
    opacity: 0;
}

.form__mensaje{
    height: 45px;
    line-height: 45px;
    background: #F66060;
    padding: 0 15px;
    border-radius: 3px;
    font-size: 10px;
    text-align: center;
    display: none;
}

.form__mensaje-activo{
    display: block;
}

.form__mensaje p{
    margin: 0;
}

.form__grupo-btn-acceso{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form__btn{
    height: 45px;
    line-height: 45px;
    width: 30%;
    background: #000;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: .1s ease all;
}

.form__btn:hover{
    box-shadow: 3px 0px 30px rgba(163,163,163, 1);
}

.form__mensaje-exito{
    font-size: 14px;
    color: #119200;
    display: none;
}

.form__mensaje-exito-activo{
    display: block;
}

/* -----------Estilos para validación----------- */
.form__grupo-correcto .form__validacion-estado{
    color: #1ed12d;
    opacity: 1;
}

.form__grupo-incorrecto .form__label{
    color: #bb2929;
}

.form__grupo-incorrecto .form__validacion-estado{
    color: #bb2929;
    opacity: 1;
}

.form__grupo-incorrecto .form__input{
    border: 3px solid #bb2929;
}

/* ----------------Mediaqueries---------------- */
@media (min-width: 320px){
    body{
        background-image: url("../images/MoDoIphone.png");
    }

    .form_acceso{
        grid-template-columns: 1fr;

        width: 95%;
        max-width: 500px;
    }
    
    .form__title, .form__mensaje, .form__grupo-btn-acceso{
        grid-column: 1;
    }

    .form__btn{
        width: 100%;
    }
}

@media (min-width: 768px){
    body{
        background-image: url("../images/MoDoIpad.png");
    }
    
    .form__title, .form__mensaje, .form__grupo-btn-acceso{
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .form__btn{
        width: 30%;
    }
}

@media (min-width: 1024px){
    body{
        background-image: url("../images/MoDoWebPequena.png");
    }
}