:root{

    --primary:#19AE5D;
    --primary-dark:#11864A;

    --bg:#EEF3F8;

    --white:#ffffff;

    --text:#24313F;

    --muted:#6B7280;

    --border:#D7DEE6;

    --radius:24px;

}

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

/*
===================================
BACKGROUND
===================================
*/

body{

    background:#F4F7FB;

    font-family:'Inter',sans-serif;

    overflow:hidden;

    position:relative;

}

.bg-pattern{

    position:fixed;

    inset:0;

    background-image:

        radial-gradient(circle at 1px 1px,#d8e2eb 1px,transparent 0);

    background-size:28px 28px;

    opacity:.45;

    z-index:0;

}

.blur{

    position:fixed;

    border-radius:50%;

    filter:blur(100px);

    z-index:0;

}

.blur-1{

    width:420px;

    height:420px;

    background:#19AE5D22;

    left:-120px;

    top:-80px;

}

.blur-2{

    width:420px;

    height:420px;

    background:#1C8AFF18;

    right:-120px;

    bottom:-120px;

}

.login{

    display:flex;

    min-height:100vh;
    position:relative;

    z-index:10;

}

/*
=========================
LEFT
=========================
*/

.login-left{

    width:45%;

    background:linear-gradient(
        160deg,
        #0D8C48,
        #19AE5D
    );

    color:white;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:80px;

    position:relative;

    overflow:hidden;

}

.login-left::before{

    content:"";

    width:650px;

    height:650px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    position:absolute;

    right:-220px;

    top:-180px;

}

.brand{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:60px;

}

.brand img{

    width:70px;

}

.brand span{

    font-size:28px;

    font-weight:700;

}

.login-left h1{

    font-size:48px;

    line-height:62px;

    margin-bottom:25px;

}

.login-left p{

    font-size:18px;

    line-height:34px;

    opacity:.9;

}

/*
=========================
RIGHT
=========================
*/

.login-right{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px;

}

.card{

    width:470px;

    background:rgba(255,255,255,.88);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.6);

    border-radius:26px;

    padding:55px;

    box-shadow:

        0 30px 80px rgba(0,0,0,.08);

    transition:.35s;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:

        0 40px 90px rgba(0,0,0,.12);

}

.icon{

    width:90px;

    height:90px;

    border-radius:50%;

    background:#EAF8F0;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:42px;

    margin:auto;

    margin-bottom:25px;

}

.card h2{

    text-align:center;

    font-size:32px;

    margin-bottom:10px;

}

.card small{

    display:block;

    text-align:center;

    color:var(--muted);

    margin-bottom:35px;

}

.field{

    margin-bottom:24px;

}

.field label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

}

.field input{

    width:100%;

    height:58px;

    border-radius:16px;

    border:2px solid #E7ECF2;

    background:white;

    padding:0 18px;

    font-size:15px;

    transition:.3s;

}

.field input:hover{

    border-color:#C9D5E2;

}

.field input:focus{

    border-color:#19AE5D;

    box-shadow:

        0 0 0 5px rgba(25,174,93,.15);

}

button{

    width:100%;

    height:58px;

    border:none;

    border-radius:16px;

    background:

        linear-gradient(

            135deg,

            #19AE5D,

            #138D4D

        );

    color:white;

    font-size:17px;

    font-weight:700;

    cursor:pointer;

    transition:.35s;

}

button:hover{

    transform:

        translateY(-3px);

    box-shadow:

        0 20px 35px rgba(25,174,93,.35);

}

button:active{

    transform:scale(.98);

}

@media(max-width:992px){

    .login-left{

        display:none;

    }

    .card{

        width:100%;

        max-width:450px;

    }

}

/*
===================================
LOGIN ERROR
===================================
*/

.alert-error{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 16px;

    margin:24px 0;

    border-radius:14px;

    background:#FFF2F2;

    border:1px solid #FECACA;

    color:#B91C1C;

    font-size:14px;

    font-weight:500;

}

.alert-error svg{

    flex-shrink:0;

}

.field-error{

    display:block;

    margin-top:8px;

    color:#DC2626;

    font-size:13px;

}

.spinner{

    width:18px;

    height:18px;

    border:2px solid rgba(255,255,255,.35);

    border-top:2px solid white;

    border-radius:50%;

    display:inline-block;

    animation:spin .8s linear infinite;

    margin-right:10px;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

.btn-login{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

}

.btn-login:disabled{

    opacity:.75;

    cursor:not-allowed;

}

.password-wrapper{

    position:relative;

}

.password-wrapper input{

    padding-right:55px;

}

.toggle-password{

    position:absolute;

    right:16px;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    cursor:pointer;

    color:#999;

    width:auto;

    height:auto;

    padding:0;

}

