﻿body {
    background: url('../Imagenes/bg_login.jpg') bottom no-repeat;
    background-size: cover;
    color: #fff;
    font-family: 'Lora', serif;
    height: 555px;
}

    body:after {
        content: "";
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, .4);
        z-index: -1;
    }

.form {
    background-color: #eee;
    /*margin: auto;*/
    margin-left: 37%;
    margin-top: 5%;
    /*width: 90%;*/
    max-width: 400px;
    max-height: 500px;
    padding: 4.5em 3em;
    border-radius: 10px;
    box-shadow: 0 5px 10px -5px rgb(0 0 0 /30%);
}

.formtitle {
    color: #111;
    font-size: 2em;
    font-weight: 300;
    margin-bottom: .5em;
}

    .formtitle span {
        color: #212f3d;
        font-weight: 700;
        font-size: 1.5em;
    }

.formlink {
    font-weight: 200;
    color: #000;
}

.formcontainer {
    margin-top: 2em;
    display: grid;
    grid-gap: 2.5em;
}

.formgrup {
    position: relative;
    --color: #5757577e;
}

.forminput {
    width: 100%;
    background: none;
    color: #808080;
    font-size: 1rem;
    padding: .6em .3em;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--color);
    font-family: sans-serif;
}


    .forminput:not(:placeholder-shown) {
        color: #4d4646;
    }

        .forminput:focus + .formlabel,
        .forminput:not(:placeholder-shown) + .formlabel {
            transform: translateY(-12px) scale(.7);
            transform-origin: left top;
            color: #212f3d;
        }

.formlabel {
    color: var(--color);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 5px;
    transform: translateY(10px);
    transition: transform .5s, color .3s;
}

.formsubmit {
    border: none;
    outline: none;
    height: 40px;
    color: #808080;
    font-size: 20px;
    background: #8080806e;
    cursor: pointer;
    border-radius: 20px;
}

    .formsubmit:hover {
        background: #212f3d;
        color: #fff;
        font-weight: bold;
    }

.formline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #212f3d;
    transform: scale(0);
    transform: scale(left bottom);
    transition: transform .4s;
}

.forminput:focus ~ .formline,
.forminput:not(:placeholder-shown) ~ .formline {
    transform: scale(1);
}

.nogap {
    grid-gap: 0.5em;
    color: #5757577e;
    text-align: start;
}


.message_correct {
    background-color: #28a745;
    color: #fff;
    font-weight: bold;
    font-size: larger;
    padding: 0px 20px;
    border-radius: 17px;
    margin: 20px 0px;
    position: fixed;
    width: auto;
    bottom: 0px;
    text-align: center;
    left: 0;
}

.message_warning {
    background-color: #ff7b08;
    color: #fff;
    font-weight: bold;
    font-size: larger;
    padding: 0px 20px;
    border-radius: 17px;
    margin: 20px 0px;
    position: fixed;
    width: auto;
    bottom: 0px;
    text-align: center;
    left: 0;
}

.message_error {
    /*background-color: #dc3545a8;*/
    background-color: #dc3545;
    color: #fff;
    font-weight: bold;
    font-size: larger;
    padding: 0px 20px;
    border-radius: 17px;
    margin: 20px 0px;
    position: fixed;
    width: auto;
    bottom: 0px;
    text-align: center;
    left: 0;
}

.message_info {
    background-color: #2098d1;
    color: #fff;
    font-weight: bold;
    font-size: larger;
    padding: 0px 20px;
    border-radius: 17px;
    margin: 20px 0px;
    position: fixed;
    width: auto;
    bottom: 0px;
    text-align: center;
    left: 0;
}

@media (max-width:425px) {
    .formtitle {
        font-size1 .5rem;
    }
}
