/* =========================
   GOOGLE FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   BODY
========================= */

body{

    font-family:'Poppins',sans-serif;

    min-height:100vh;

    overflow:hidden;

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            rgba(0, 21, 0, 0.78),
            rgba(255, 255, 255, 0.82)
        ),
        url('../cacao-bg.png');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* =========================
   AGRICULTURE OVERLAY
========================= */

body::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        radial-gradient(
            circle at top right,
            rgba(120, 180, 90, 0.18),
            transparent 35%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(92, 58, 34, 0.22),
            transparent 35%
        );

    z-index:0;
}

/* =========================
   LOGIN BLOCK
========================= */

.login-block{

    width:100%;

    padding:40px 15px;

    position:relative;

    z-index:2;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   AUTH CARD
========================= */

.auth-box{

    width:100%;
    max-width:460px;

    margin:auto;

    background:rgba(255,255,255,0.12);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.12);

    border-radius:28px;

    overflow:hidden;

    box-shadow:
        0 25px 45px rgba(0,0,0,0.28);

    animation:fadeIn 0.7s ease;
}

/* =========================
   TOP HEADER
========================= */

.auth-box::before{

    content:"";

    display:block;

    width:100%;
    height:8px;

    background:
        linear-gradient(
            90deg,
            #3d6b35,
            #6b8e23,
            #d6a648
        );
}

/* =========================
   CARD CONTENT
========================= */

.card-block{

    padding:40px 35px;
}

/* =========================
   LOGO
========================= */

.text-center{
    text-align:center;
}

.text-center img{

    width:120px;

    margin-bottom:18px;

    filter:
        drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

/* =========================
   TITLE
========================= */

.login-title{

    text-align:center;

    margin-bottom:28px;
}

.login-title h2{

    color:#ffffff;

    font-size:28px;

    font-weight:600;

    margin-bottom:6px;
}

.login-title p{

    color:rgba(255,255,255,0.78);

    font-size:20px;
}

/* =========================
   ALERTS
========================= */

.alert{

    width:100%;

    padding:14px 18px;

    border-radius:14px;

    margin-bottom:18px;

    font-size:14px;

    border:none;
}

.alert-success{

    background:#d1fae5;

    color:#065f46;
}

.alert-danger{

    background:#fee2e2;

    color:#991b1b;
}

.alert ul{
    margin:0;
    padding-left:18px;
}

/* =========================
   FORM GROUP
========================= */

.form-group{

    position:relative;

    margin-bottom:24px;
}

/* =========================
   INPUT
========================= */

.form-control{

    width:100%;

    height:60px;

    border:none;

    outline:none;

    border-radius:16px;

    padding:0 20px;

    background:rgba(255,255,255,0.94);

    color:#1f2937;

    font-size:20px;

    transition:0.3s;
}

.form-control:focus{

    background:#ffffff;

    box-shadow:
        0 0 0 4px rgba(107,142,35,0.22);
}

/* =========================
   PLACEHOLDER
========================= */

.form-control::placeholder{
    color:#6b7280;
}

/* =========================
   PASSWORD TOGGLE
========================= */

.password-toggle{

    position:absolute;

    right:20px;
    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    color:#43506d;

    font-size:16px;
}

/* =========================
   BUTTON
========================= */

.btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            #3d6b35,
            #6b8e23
        );

    color:#fff;

    font-size:20px;
    font-weight:600;

    cursor:pointer;

    transition:0.3s;

    box-shadow:
        0 12px 25px rgba(61,107,53,0.28);
}

.btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 28px rgba(61,107,53,0.38);
}

.btn:disabled{

    opacity:0.85;

    cursor:not-allowed;
}

/* =========================
   FOOTER TEXT
========================= */

.login-footer{

    margin-top:22px;

    text-align:center;

    color:rgba(255,255,255,0.72);

    font-size:13px;

    line-height:1.6;
}

/* =========================
   PAGE LOADER
========================= */

.page-loader{

    position:fixed;

    inset:0;

    background:
        linear-gradient(
            rgba(0, 67, 0, 0.92),
            rgba(22, 40, 15, 0.96)
        );

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    z-index:999999;

    transition:0.6s ease;
}

/* HIDE */

.page-loader.hide{

    opacity:0;

    visibility:hidden;
}

/* =========================
   LOADER BOX
========================= */

.loader-box{

    position:relative;

    width:160px;
    height:160px;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   OUTER RING
========================= */

.loader-ring{

    position:absolute;

    width:160px;
    height:160px;

    border-radius:50%;

    border:6px solid transparent;

    border-top:6px solid #6b8e23;
    border-right:6px solid #d6a648;

    animation:rotate 1.1s linear infinite;
}

/* =========================
   SECOND RING
========================= */

.loader-ring-two{

    position:absolute;

    width:120px;
    height:120px;

    border-radius:50%;

    border:5px solid transparent;

    border-bottom:5px solid #3d6b35;
    border-left:5px solid #c28b32;

    animation:rotateReverse 0.9s linear infinite;
}

/* =========================
   CENTER LOGO
========================= */

.loader-logo{

    width:70px;
    height:70px;

    border-radius:50%;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.25);

    z-index:5;
}

.loader-logo img{

    width:50px;
}

/* =========================
   LOADING TEXT
========================= */

.loader-text{

    margin-top:25px;

    color:#fff;

    font-size:20px;

    font-weight:500;

    letter-spacing:1px;

    animation:pulse 1.2s infinite;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes rotate{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

@keyframes rotateReverse{

    from{
        transform:rotate(360deg);
    }

    to{
        transform:rotate(0deg);
    }
}

@keyframes pulse{

    0%{
        opacity:0.5;
    }

    50%{
        opacity:1;
    }

    100%{
        opacity:0.5;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    body{
        overflow:auto;
    }

    .auth-box{

        max-width:100%;
    }

    .card-block{

        padding:35px 25px;
    }

    .login-title h2{
        font-size:24px;
    }

    .text-center img{
        width:100px;
    }

}

@media(max-width:480px){

    .login-block{
        padding:20px 10px;
    }

    .card-block{
        padding:28px 20px;
    }

    .form-control{

        height:55px;

        font-size:14px;
    }

    .btn{

        height:55px;

        font-size:15px;
    }

    .login-title h2{
        font-size:22px;
    }

}