/*==================================================
    LOGIN
    LEARNING MAIL
==================================================*/


/*==================================================
    CONTENEDOR GENERAL
==================================================*/

.login-container{
    min-height:90vh;
    width:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px 20px;
    box-sizing:border-box;
    background:linear-gradient(
        135deg,
        #ECECEC,
        #D7D7D7
    );
}


/*==================================================
    TARJETA
==================================================*/

.login-card{
    position:relative;
    width:620px;
    min-height:500px;
    background:#FFFFFF;
    border-radius:24px;
    overflow:hidden;
    box-shadow:
        0 20px 45px rgba(0,0,0,.15);
    display:flex;
    flex-direction:column;
    animation:loginFade .8s ease;
}


/*==================================================
    CONTENIDO
==================================================*/

.login-content{
    position:relative;
    z-index:2;
    flex:1;
    display:flex;
    flex-direction:column;
    padding:30px 45px 95px;
    box-sizing:border-box;
}


/*==================================================
    LOGO
==================================================*/

.logo{
    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    margin-bottom:12px;
}

.logo img{
    width:650px;
    max-width:100%;
    height:auto;
    display:block;
    transition:.35s ease;
}

.logo img:hover{
    transform:scale(1.02);
}


/*==================================================
    ICONO CORREO
==================================================*/

.mail-icon{
    width:58px;
    height:58px;
    margin:5px auto 16px;
    border-radius:50%;
    background:rgba(62,43,116,.08);
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.35s ease;
}

.mail-icon:hover{
    transform:rotate(8deg);
}

.mail-icon i{
    font-size:30px;

    color:var(--primary);
}


/*==================================================
    TITULO
==================================================*/

.login-card h1{
    margin:0 0 6px;
    text-align:center;
    font-size:2.35rem;
    line-height:1.15;
    font-weight:700;
    color:var(--primary);
}


/*==================================================
    SUBTITULO
==================================================*/

.subtitle{
    margin:20px 0 20px;
    text-align:center;
    color:var(--text);
    font-size:30px;
    line-height:1.5;
}


/*==================================================
    DIVISOR
==================================================*/

.divider{
    width:80px;
    height:4px;
    margin:40px auto 40px;
    border-radius:30px;
    background:var(--secondary);
}


/*==================================================
    FORMULARIO
==================================================*/

form{
    width:100%;
    display:flex;
    flex-direction:column;
}


/*==================================================
    GRUPO DEL FORMULARIO
==================================================*/

.form-group{
    width:100%;

    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:7px;
    font-size:.86rem;
    font-weight:700;
    color:var(--text);
}


/*==================================================
    CONTENEDOR DEL INPUT
==================================================*/

.input-group{
    width:100%;
    height:58px;
    display:flex;
    align-items:center;
    border:2px solid #E4E4E4;
    border-radius:13px;
    overflow:hidden;
    background:#FFFFFF;
    box-sizing:border-box;
    transition:.30s ease;
}

.input-group:focus-within{
    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(62,43,116,.10);
}


/*==================================================
    ICONO IZQUIERDO
==================================================*/

.input-group span{
    width:60px;
    height:58px;
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:var(--primary);
    color:#FFFFFF;
}

.input-group span i{
    font-size:19px;
}


/*==================================================
    INPUT
==================================================*/

.input-group input{
    flex:1;
    width:100%;
    height:100%;
    padding:0 17px;
    border:none;
    outline:none;
    background:transparent;
    color:var(--text);
    font-size:.96rem;
    box-sizing:border-box;
}

.input-group input::placeholder{
    color:#9A9A9A;
}


/*==================================================
    BOTON MOSTRAR CONTRASEÑA
==================================================*/

#togglePassword{
    width:58px;
    height:58px;
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
    border:none;
    background:#FFFFFF;
    color:#777;
    cursor:pointer;
    transition:.30s ease;
}

#togglePassword:hover{
    color:var(--primary);
}


/*==================================================
    RECUPERAR CONTRASEÑA
==================================================*/

.forgot-password{
    width:100%;
    text-align:right;
    margin-top:-1px;
    margin-bottom:22px;
}

.forgot-password a{
    font-size:.88rem;
    font-weight:600;
    color:var(--primary);
    text-decoration:none;
}

.forgot-password a:hover{
    color:var(--accent);
}


/*==================================================
    BOTON LOGIN
==================================================*/

.btn-login{
    position:relative;
    z-index:3;
    width:100%;
    height:58px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    border:none;
    border-radius:13px;
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--accent)
    );
    color:#FFFFFF;
    font-size:1rem;
    font-weight:700;
    cursor:pointer;
    transition:.30s ease;
}

.btn-login:hover{
    transform:translateY(-2px);
    box-shadow:
        0 12px 30px rgba(26,103,153,.30);
}

.btn-login i{
    font-size:17px;
}


/*==================================================
    MENSAJES DE ERROR
==================================================*/

.alert-error{
    position:relative;
    z-index:3;
    width:100%;
    background:#ffe5e5;
    border-left:5px solid #dc3545;
    color:#8b1e2d;
    padding:12px 16px;
    border-radius:10px;
    margin-bottom:18px;
    font-size:14px;
    font-weight:600;
    box-sizing:border-box;
}


/*==================================================
    FOOTER
==================================================*/

.login-footer{
    position:relative;
    z-index:3;
    margin-top:auto;
    width:100%;
    display:flex;
    align-items:center;
    gap:14px;
    padding-top:25px;
}

.login-footer span{
    flex:1;
    height:1px;
    background:#D9D9D9;
}

.login-footer p{
    margin:0;
    color:var(--accent);
    font-size:.84rem;
    font-weight:600;
    align-items:center;
}


/*==================================================
    ONDA INFERIOR
==================================================*/

.login-card::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:60px;
    background:linear-gradient(
        90deg,
        var(--primary) 50%,
        var(--secondary) 50%
    );

    clip-path:ellipse(
        80% 100% at 50% 100%
    );
    z-index:1;
}


/*==================================================
    ANIMACION
==================================================*/

@keyframes loginFade{

    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}


/*==================================================
    TABLET
==================================================*/

@media (max-width:992px){

    .login-container{
        padding:25px 20px;
    }

    .login-card{
        width:520px;
        min-height:690px;
    }

    .login-content{
        padding:30px 38px 90px;
    }

    .logo img{
        width:500px;
        padding:30px;
    }

    .login-card h1{
        font-size:2.15rem;
    }

}


/*==================================================
    MOVILES
==================================================*/

@media (max-width:768px){

    .login-container{
        padding:18px 14px;
        align-items:center;
    }

    .login-card{
        width:100%;
        min-height:auto;
        border-radius:18px;
    }

    .login-content{
        padding:28px 24px 80px;
    }

    .logo{
        margin-bottom:10px;
    }

    .logo img{
        width:400px;
        max-width:100%;
    }

    .mail-icon{
        width:52px;
        height:52px;
        margin-bottom:14px;
    }

    .mail-icon i{
        font-size:27px;
    }

    .login-card h1{
        font-size:1.95rem;
    }

    .subtitle{
        font-size:.94rem;
        margin-bottom:14px;
    }

    .divider{
        margin-bottom:23px;
    }

    .form-group{
        margin-bottom:16px;
    }

    .form-group label{
        font-size:.82rem;
    }

    .input-group{
        height:54px;
    }

    .input-group span{
        width:54px;
        height:54px;
    }

    .input-group input{
        font-size:.94rem;
    }

    #togglePassword{
        width:54px;
        height:54px;
    }

    .forgot-password{
        margin-bottom:20px;
    }

    .btn-login{
        height:54px;
    }

    .login-footer{
        padding-top:22px;
    }

    .login-footer p{
        font-size:.76rem;
    }

    login-card::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:65px;
    background:linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--primary) 50%,
        var(--secondary) 50%,
        var(--secondary) 100%
    );

    clip-path:ellipse(
        75% 100% at 50% 100%
    );
    z-index:1;
}
}


/*==================================================
    TELEFONOS PEQUEÑOS
==================================================*/

@media (max-width:480px){

    .login-container{
        padding:12px;
    }

    .login-content{
        padding:24px 18px 75px;
    }

    .logo img{
        
        width:280px;
        max-width:95%;
    }

    .mail-icon{
        width:48px;
        height:48px;
    }

    .mail-icon i{
        font-size:25px;
    }

    .login-card h1{
        font-size:1.7rem;
    }

    .subtitle{
        font-size:.88rem;
    }

    .input-group{
        height:52px;
    }

    .input-group span{
        width:52px;
        height:52px;
    }

    #togglePassword{
        width:52px;
        height:52px;
    }

    .btn-login{
        height:52px;

        font-size:.94rem;
    }

    .login-footer{
        gap:10px;
    }

    .login-footer p{
        font-size:.70rem;
    }

    .login-card::after{
        height:45px;
    }
}