*{
    margin:0;
    padding:0;
    box-sizing:border-box;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
}


html,
body{

    width:100%;

    min-height:100vh;

}



/* =========================
   BODY
========================= */


body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;


    padding:20px;


    overflow-x:hidden;


    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef4ff 100%
        );


    position:relative;

}



/* =========================
   BACKGROUND EFFECT
========================= */


body::before{

    content:"";


    position:absolute;


    width:420px;


    height:420px;


    background:#2563eb;


    border-radius:50%;


    top:-120px;


    left:-120px;


    opacity:.15;


    filter:blur(120px);

}



body::after{

    content:"";


    position:absolute;


    width:420px;


    height:420px;


    background:#1d4ed8;


    border-radius:50%;


    bottom:-140px;


    right:-120px;


    opacity:.12;


    filter:blur(140px);

}


.footer-link{

    color:#64748b;

    text-decoration:none;

    font-weight:500;

    transition:all 0.25s ease;

}


/* =========================
   LOGIN LINKS
========================= */

.login-links{

    display:flex;

    justify-content:flex-end;

    margin:-2px 0 14px;

}
.forgot-link,
.forgot-link:hover,
.forgot-link:focus,
.forgot-link:visited{

    text-decoration:none;

}
.forgot-link{

    font-size:14px;

    color:#2563eb;

    text-decoration:none;

    font-weight:600;

    transition:.2s;

}

.forgot-link:hover{

    color:#1d4ed8;

}

/* =========================
   MOBILE LOGIN LINKS
========================= */

@media (max-width:768px){

    .login-links{

        justify-content:center;

        margin:6px 0 16px;

    }

    .forgot-link{

        font-size:13px;

        font-weight:600;

    }

}

.footer-link:hover{

    color:#2563eb;

}

/* =========================
   MOBILE FOOTER LINK
========================= */

@media(max-width:768px){

    .footer-link{

        color:#475569;

        font-size:11px;

        font-weight:600;

    }


    .footer-link:hover{

        color:#2563eb;

    }

}
/* =========================
   LOGIN CARD
========================= */


.box{


    position:relative;


    z-index:2;



    width:380px;


    max-width:100%;



    padding:34px;



    border-radius:24px;



    background:
        rgba(255,255,255,.92);



    backdrop-filter:blur(10px);



    border:
        1px solid rgba(255,255,255,.6);



    box-shadow:

        0 25px 60px rgba(37,99,235,.12);


}


/* =========================
   LOGO
========================= */


.logo{


    width:62px;


    height:62px;


    border-radius:18px;


    display:flex;


    align-items:center;


    justify-content:center;


    font-size:28px;


    margin-bottom:18px;


    background:

        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );


    color:white;


    box-shadow:

        0 10px 30px rgba(37,99,235,.25);

}




/* =========================
   TITLE
========================= */


.title{


    font-size:28px;


    font-weight:800;


    color:#0f172a;



    margin-bottom:8px;


}




/* =========================
   DESCRIPTION
========================= */


.sub{


    font-size:14px;


    line-height:1.6;


    color:#64748b;



    margin-bottom:24px;


}





/* =========================
   ALERT
========================= */


.login-alert{


    display:flex;


    align-items:center;


    gap:10px;



    padding:14px 16px;



    margin-bottom:18px;



    border-radius:14px;



    background:#fff1f2;



    border:1px solid #fecdd3;



    color:#be123c;



    font-size:14px;


    font-weight:600;

}





/* =========================
   INPUT
========================= */


.input-group{


    margin-bottom:16px;


}



.input-label{


    display:block;



    margin-bottom:8px;



    font-size:13px;



    font-weight:600;



    color:#334155;


}




.input{


    width:100%;



    height:48px;



    padding:14px 16px;



    border-radius:14px;



    border:1px solid #dbe3f0;



    background:white;



    outline:none;



    font-size:14px;



    transition:.25s;

}



.input:focus{


    border-color:#2563eb;



    box-shadow:

        0 0 0 4px rgba(37,99,235,.12);


}




/* =========================
   BUTTON
========================= */


.btn{


    width:100%;



    height:50px;



    border:none;



    padding:14px;



    border-radius:14px;



    cursor:pointer;



    color:white;



    font-size:15px;



    font-weight:700;



    margin-top:6px;



    transition:.25s;



    background:

        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );



    box-shadow:

        0 12px 24px rgba(37,99,235,.25);


}




.btn:hover{


    transform:translateY(-2px);


}



.btn:active{


    transform:scale(.98);


}





/* =========================
   REGISTER LINK
========================= */


.register-box{


    margin-top:18px;



    padding-top:20px;



    border-top:

        1px solid #e2e8f0;



    display:flex;



    align-items:center;



    justify-content:space-between;



    gap:12px;


}





.register-text{


    font-size:13px;


    color:#64748b;


    font-weight:500;


}





.register-btn{


    text-decoration:none;



    padding:10px 14px;



    border-radius:12px;



    font-size:13px;



    font-weight:700;



    color:#2563eb;



    background:#eff6ff;



    border:

        1px solid #bfdbfe;


}





.register-btn:hover{


    background:#2563eb;


    color:white;


}






/* =========================
   FOOTER
========================= */


.footer{


    margin-top:22px;


    text-align:center;


    font-size:12px;


    color:#94a3b8;


}


/* =================================================
   LOGIN PAGE CENTER WRAPPER
================================================= */


.login-page{


    width:100%;


    min-height:100vh;



    display:flex;


    justify-content:center;


    align-items:center;



    padding:20px;



}




.login-page .box{


    position:relative;


    z-index:2;


}


/* =================================================
   MOBILE LOGIN TRUE CENTER GRID
================================================= */

@media(max-width:768px){


html,
body{

    width:100% !important;

    height:100% !important;

    min-height:100dvh !important;

    margin:0 !important;

    padding:0 !important;

}



body{

    display:block !important;

    overflow-x:hidden !important;

}



/* CENTER WRAPPER */

.login-page{


    width:100% !important;


    height:100dvh !important;



    display:grid !important;


    place-items:center !important;



    padding:16px !important;



}




/* CARD */

.login-page .box{


    width:calc(100vw - 32px) !important;


    max-width:430px !important;



    margin:0 !important;


    padding:28px 26px !important;



    border-radius:24px !important;



}




}

.password-wrapper{

    position:relative;

    width:100%;

}

.password-wrapper .password-input{

    width:100%;

    padding-right:48px;

}

.password-toggle{

    position:absolute;

    top:50%;

    right:12px;

    transform:translateY(-50%);

    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:none;

    background:transparent;

    color:#64748b;

    cursor:pointer;

    padding:0;

    font-size:13px;

    transition:
        color .2s ease,
        transform .2s ease;

}

.password-toggle:hover{

    color:#2563eb;

}

.password-toggle:active{

    transform:
        translateY(-50%)
        scale(.92);

}

/* ==========================================================
   LOGIN FLASH
========================================================== */

.login-flash-container{

    position:fixed;

    top:24px;
    right:24px;

    z-index:99999;

    display:flex;

    flex-direction:column;

    gap:10px;

    width:min(390px, calc(100vw - 32px));

    pointer-events:none;

}


.login-flash{

    display:flex;

    align-items:center;

    gap:12px;

    padding:13px 14px;

    background:#ffffff;

    border-radius:12px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12),
        0 3px 8px rgba(0,0,0,.06);

    border-left:4px solid;

    animation:loginFlashIn .35s ease;

    pointer-events:auto;

}


.login-flash-success{

    border-left-color:#22c55e;

}


.login-flash-error{

    border-left-color:#ef4444;

}


.login-flash-warning{

    border-left-color:#f59e0b;

}


.login-flash-icon{

    width:30px;
    height:30px;

    flex:0 0 30px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:15px;

    font-weight:800;

}


.login-flash-success .login-flash-icon{

    background:#dcfce7;

    color:#16a34a;

}


.login-flash-error .login-flash-icon{

    background:#fee2e2;

    color:#dc2626;

}


.login-flash-warning .login-flash-icon{

    background:#fef3c7;

    color:#d97706;

}


.login-flash-message{

    flex:1;

    color:#334155;

    font-size:14px;

    font-weight:600;

    line-height:1.4;

}


.login-flash-close{

    border:0;

    background:transparent;

    color:#94a3b8;

    font-size:21px;

    line-height:1;

    cursor:pointer;

    padding:2px 4px;

}


.login-flash-close:hover{

    color:#475569;

}


.login-flash-hide{

    animation:loginFlashOut .5s ease forwards;

}


@keyframes loginFlashIn{

    from{

        opacity:0;

        transform:translateX(30px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}


@keyframes loginFlashOut{

    from{

        opacity:1;

        transform:translateX(0);

    }

    to{

        opacity:0;

        transform:translateX(30px);

    }

}


@media(max-width:600px){

    .login-flash-container{

        top:14px;

        right:14px;

        left:14px;

        width:auto;

    }

}