﻿/****************************************************
    RESET
*****************************************************/


@font-face {
    font-family: 'FuenteInnvita';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'FuenteInnvita';
    src: url('../fonts/OpenSans-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'FuenteInnvita';
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'FuenteInnvita';
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
form {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'FuenteInnvita', 'Segoe UI', Arial, sans-serif;
}

/****************************************************
    FONDO
*****************************************************/

.background {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /*background: linear-gradient(135deg, #08111f 0%, #0d1830 40%, #091321 100%);*/
    background: linear-gradient(135deg, #08111f 0%, #2563eb 40%, #091321 100%);
}

/****************************************************
    HALOS AZULES
*****************************************************/

.light {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .25;
}

.light-left {
    left: -180px;
    top: -120px;
    background: #1d7cff;
}

.light-right {
    right: -200px;
    bottom: -180px;
    background: #2c5eff;
}

/****************************************************
    TARJETA
*****************************************************/

.login-card {
    position: relative;
    width: 460px;
    padding: 45px;
    border-radius: 28px;
    /*background: rgba(20,30,52,.72);*/
    background: rgba(42, 85, 180, 0.72);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
    z-index: 10;
    animation: aparecer .8s ease;
    overflow: visible;
    font-family: 'FuenteInnvita', sans-serif;
}




.logo {
    text-align: center;
    margin-bottom: 35px;
}

    .logo img {
        width: 300px;
        transition: .35s;
    }

        .logo img:hover {
            transform: scale(1.03);
        }

.subtitle {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 5px;
    color: #8fa3bf;
}



.field {
    position: relative;
    margin-bottom: 18px;
    z-index: 10;
    width: 100%;
}

/*.icon {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #8b97ac;
    font-size: 17px;
    z-index: 5;
}*/
.icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c8aa5;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

.textbox {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    padding-left: 48px;
    padding-right: 48px;
    color: white;
    font-family: 'FuenteInnvita', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    transition: .25s;
}

    .textbox:focus {
        outline: none;
        border-color: #4ca0ff;
        background: rgba(255,255,255,.08);
        box-shadow: 0 0 0 4px rgba(55,150,255,.15);
    }

    .textbox::placeholder {
        color: #93a0b5;
    }



.eye {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #8c98ad;
    cursor: pointer;
    transition: .25s;
}

    .eye:hover {
        color: white;
    }

.select {
    width: 100%;
    height: 56px;
    padding-left: 50px; /* Espacio para el icono */
    padding-right: 18px;
    border-radius: 14px;
    background: rgba(20,30,52,.95);
    border: 1px solid rgba(255,255,255,.08);
    color: white;
    font-family: 'FuenteInnvita', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' viewBox='0 0 24 24' fill='%238b97ac'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

select option {
    background: #1a2338;
    color: white;
    font-family: 'FuenteInnvita', 'Segoe UI', Arial, sans-serif;
    padding: 8px;
}

.select:focus {
    outline: none;
    border-color: #4ca0ff;
    background: rgba(30,45,75,.95);
    box-shadow: 0 0 0 4px rgba(55,150,255,.15);
}

.options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        margin-bottom: 25px;
        color: #a3b1c4;
        font-size: 15px;
    }



/****************************************************
    BOTON
*****************************************************/

    .btnLogin {
        position: relative;
        width: 100%;
        height: 58px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        overflow: hidden;
        color: white;
        font-family: 'FuenteInnvita', 'Segoe UI', Arial, sans-serif;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: .5px;
        background: linear-gradient(90deg,#2d7cff,#55a9ff);
        box-shadow: 0 15px 35px rgba(35,120,255,.35);
        transition: .30s;
    }

    .btnLogin:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 45px rgba(35,120,255,.45);
    }

    .btnLogin:active {
        transform: scale(.98);
    }


    .btnLogin:before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.40), transparent);
        transition: .8s;
    }

    .btnLogin:hover:before {
        left: 130%;
    }


    .loading {
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 25px;
        color: white;
    }

    .loader {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 4px solid rgba(255,255,255,.15);
        border-top: 4px solid #53a5ff;
        animation: spin 1s linear infinite;
        margin-bottom: 10px;
    }

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


.message {
    display: block;
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 12px;
    background: #712626;
    border: 1px solid #a73d3d;
    color: white;
    text-align: center;
    font-size: 15px;
}

.forgot {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

    .forgot:hover {
        text-decoration: underline;
        opacity: .8;
    }



.footer {
    position: absolute;
    bottom: 20px;
    color: #7f91ab;
    font-size: 13px;
    letter-spacing: 1px;
}



@keyframes aparecer {

    from {
        opacity: 0;
        transform: translateY(35px) scale(.95);
    }

    to {
        opacity: 1;
        transform: none;
    }
}



@media(max-width:600px) {

    .login-card {
        width: 92%;
        padding: 30px;
        backdrop-filter: blur(18px);
    }

    .logo img {
        width: 190px;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .textbox {
        height: 52px;
    }

    .btnLogin {
        height: 54px;
    }
}


.login-card {
    animation: aparecer .7s cubic-bezier(.2,.8,.2,1);
}
