/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================================================
   ROOT
========================================================= */

:root{
    --primary:#2d7a32;
    --primary-light:#4caf50;

    --text:#1f1f1f;
    --gray:#7b7b7b;

    --border:#dfe5df;
}

/* =========================================================
   BODY
========================================================= */

body{
    font-family:'Montserrat',sans-serif;

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

    overflow:hidden;
    position:relative;

    background:
        radial-gradient(circle at top left, #f7fbf7, #edf4ee);
}

/* =========================================================
   BACKGROUND EFFECT
========================================================= */

body::before,
body::after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter:blur(70px);
    z-index:0;
}

body::before{
    width:300px;
    height:300px;

    background:rgba(76,175,80,0.10);

    top:-80px;
    left:-80px;
}

body::after{
    width:260px;
    height:260px;

    background:rgba(45,122,50,0.08);

    bottom:-80px;
    right:-80px;
}

/* =========================================================
   PAGE
========================================================= */

.login-page{
    width:100%;
    display:flex;
    justify-content:center;

    position:relative;
    z-index:2;
}

/* =========================================================
   CARD
========================================================= */

.login-card{

    width:1100px;
    min-height:620px;

    display:flex;

    overflow:hidden;

    border-radius:30px;

    background:rgba(255,255,255,0.78);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.5);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.08),
        0 10px 30px rgba(0,0,0,0.05);

    animation:fadeIn .6s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   LEFT SIDE
========================================================= */

.login-left{

    width:50%;

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:50px;

    overflow:hidden;

    background-image:
        url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&q=80');

    background-size:cover;
    background-position:center;
}

/* OVERLAY */

.overlay{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(20,72,25,0.88),
            rgba(9,38,14,0.75)
        );
}

/* CONTENT */

.left-content{

    position:relative;
    z-index:2;

    width:100%;
    max-width:420px;

    text-align:center;
    color:#fff;
}

/* =========================================================
   LOGO
========================================================= */

.logo-circle{

    width:76px;
    height:76px;

    margin:0 auto 28px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#fff;

    border:1px solid rgba(255,255,255,0.2);
}

.logo-circle img{
    width:76%;
    height:76%;
    object-fit:contain;
}

/* =========================================================
   LEFT TEXT
========================================================= */

.left-content h1{

    font-size:4rem;
    font-weight:800;

    line-height:1.1;
    letter-spacing:1px;

    margin-bottom:24px;
}

.system-text{

    font-size:1.1rem;

    line-height:1.8;

    opacity:.95;
}

.line{

    width:80px;
    height:4px;

    margin:30px auto;

    border-radius:999px;

    background:#fff;
}

.footer-text{

    font-size:1rem;

    line-height:1.7;

    opacity:.95;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.login-right{

    width:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:60px;
}

.form-wrapper{

    width:100%;
    max-width:360px;
}

/* =========================================================
   HEADER
========================================================= */

.login-header{
    margin-bottom:34px;
}

.login-header h2{

    font-size:3rem;
    font-weight:800;

    color:var(--text);

    margin-bottom:8px;
}

.login-header p{

    color:var(--gray);

    font-size:.95rem;
}

/* =========================================================
   INPUT GROUP
========================================================= */

.input-group-custom{
    margin-bottom:18px;
}

.input-group-custom label{

    display:block;

    margin-bottom:8px;

    font-size:.92rem;
    font-weight:600;

    color:#333;
}

/* =========================================================
   INPUT BOX
========================================================= */

.input-box{

    width:100%;
    height:56px;

    border-radius:16px;

    background:rgba(245,247,245,.92);

    border:1px solid var(--border);

    display:flex;
    align-items:center;

    padding:0 16px;

    transition:.25s ease;
}

.input-box:focus-within{

    background:#fff;

    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(45,122,50,.12);
}

.input-box i{

    color:#8a8a8a;

    margin-right:12px;

    font-size:1rem;
}

.input-box input{

    flex:1;

    border:none;
    outline:none;

    background:transparent;

    font-size:.95rem;

    font-family:'Inter',sans-serif;
}

/* =========================================================
   TOGGLE PASSWORD
========================================================= */

.toggle-password{

    border:none;
    background:none;

    color:#777;

    cursor:pointer;

    font-size:1rem;
}

/* =========================================================
   OPTIONS
========================================================= */

.form-options{

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:10px;

    margin-bottom:24px;
}

.remember-box{

    display:flex;
    align-items:center;

    gap:8px;
}

.remember-box label{

    font-size:.9rem;

    color:#555;

    cursor:pointer;
}

/* =========================================================
   BUTTON
========================================================= */

.login-btn{

    width:100%;
    height:56px;

    border:none;
    border-radius:16px;

    cursor:pointer;

    font-size:1rem;
    font-weight:700;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    box-shadow:
        0 10px 24px rgba(45,122,50,.22);

    transition:.25s ease;
}

.login-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 14px 30px rgba(45,122,50,.28);
}

/* =========================================================
   DIVIDER
========================================================= */

.divider{

    height:1px;

    margin:28px 0;

    background:
        linear-gradient(
            to right,
            transparent,
            #d9e2d9,
            transparent
        );
}

/* =========================================================
   REQUEST ACCESS
========================================================= */

.request-access{
    text-align:center;
}

.request-access p{

    margin-bottom:14px;

    font-size:.92rem;

    color:#666;
}

.request-btn{

    width:100%;
    height:52px;

    border-radius:15px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    background:#fff;

    border:1px solid #dce4dc;

    color:var(--primary);

    font-weight:600;

    transition:.25s ease;
}

.request-btn:hover{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;
}

/* =========================================================
   FOOTER
========================================================= */

.system-footer{

    position:fixed;

    bottom:12px;
    left:50%;

    transform:translateX(-50%);

    width:92%;

    display:flex;
    justify-content:space-between;

    font-size:11px;

    color:#8c8c8c;

    z-index:2;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:992px){

    .login-card{

        flex-direction:column;

        width:100%;
        max-width:650px;
    }

    .login-left,
    .login-right{
        width:100%;
    }

    .login-left{
        min-height:340px;
    }

    .login-right{
        padding:40px 30px;
    }

    .left-content h1{
        font-size:3rem;
    }

    .login-header h2{
        font-size:2.4rem;
    }
}

@media(max-width:576px){

    body{
        padding:14px;
    }

    .login-card{
        border-radius:22px;
    }

    .left-content h1{
        font-size:2.2rem;
    }

    .system-text,
    .footer-text{
        font-size:.9rem;
    }

    .login-header h2{
        font-size:2rem;
    }

    .form-options{

        flex-direction:column;

        align-items:flex-start;
    }

    .system-footer{
        display:none;
    }
}
/* =========================================================
   TOAST NOTIFICATION
========================================================= */

.toast-container{

    position:fixed;

    top:20px;
    right:20px;

    z-index:99999;

    display:flex;
    flex-direction:column;

    gap:12px;

    align-items:flex-end;
}

/* =========================================================
   TOAST
========================================================= */

.custom-toast{

    width:320px;

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(10px);

    border-radius:18px;

    padding:14px 16px;

    display:flex;
    align-items:flex-start;

    gap:12px;

    border-left:4px solid #2d7a32;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);

    animation:toastIn .35s ease;
}

.custom-toast.success{
    border-left-color:#2d7a32;
}

.custom-toast.error{
    border-left-color:#dc3545;
}

/* =========================================================
   ICON
========================================================= */

.toast-icon{

    width:38px;
    height:38px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    flex-shrink:0;

    font-size:1rem;
}

.custom-toast.success .toast-icon{
    background:rgba(45,122,50,.12);
    color:#2d7a32;
}

.custom-toast.error .toast-icon{
    background:rgba(220,53,69,.12);
    color:#dc3545;
}

/* =========================================================
   CONTENT
========================================================= */

.toast-content{
    flex:1;
}

.toast-title{

    font-size:.92rem;
    font-weight:700;

    margin-bottom:4px;

    color:#222;
}

.toast-message{

    font-size:.85rem;

    color:#666;

    line-height:1.5;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.toast-close{

    border:none;
    background:none;

    cursor:pointer;

    color:#999;

    font-size:1rem;
}

.toast-close:hover{
    color:#333;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes toastIn{

    from{
        opacity:0;
        transform:translateX(40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes toastOut{

    to{
        opacity:0;
        transform:translateX(50px);
    }
}

.toggle-password{

    border:none;
    background:none;

    cursor:pointer;

    color:#2d7a32;

    font-size:.9rem;
    font-weight:600;

    padding-left:10px;
}

.toggle-password:hover{
    opacity:.8;
}