/*
|--------------------------------------------------------------------------
| FARMLEDGER LOGIN PAGE
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

body{

    position:relative;

    min-height:100vh;

    overflow-x:hidden;

    background:#183422;

}


/*
|--------------------------------------------------------------------------
| FARM BACKGROUND
|--------------------------------------------------------------------------
*/

body::before{

    content:"";

    position:fixed;

    inset:-35px;

    z-index:-3;

    background:
        url("../images/farm-bg.jpeg")
        center center /
        cover
        no-repeat;

    animation:
        zoomBackground
        22s
        ease-in-out
        infinite
        alternate;

}


/*
|--------------------------------------------------------------------------
| BACKGROUND OVERLAY
|--------------------------------------------------------------------------
*/

.overlay{

    position:fixed;

    inset:0;

    z-index:-2;

    background:

        linear-gradient(
            120deg,
            rgba(8,28,15,.67) 0%,
            rgba(10,36,19,.40) 45%,
            rgba(4,18,10,.58) 100%
        );

}


/*
|--------------------------------------------------------------------------
| SUBTLE LIGHTING
|--------------------------------------------------------------------------
*/

.overlay::after{

    content:"";

    position:absolute;

    inset:0;

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(255,255,255,.09),
            transparent 42%
        );

    pointer-events:none;

}


/*
|--------------------------------------------------------------------------
| MAIN CONTAINER
|--------------------------------------------------------------------------
*/

.login-container{

    width:100%;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:
        35px 20px;

}


/*
|--------------------------------------------------------------------------
| LOGIN CARD
|--------------------------------------------------------------------------
*/

.login-card{

    position:relative;

    width:
        min(100%, 430px);

    padding:
        38px 42px 30px;

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius:
        26px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.19),
            rgba(255,255,255,.10)
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:

        0 25px 60px
        rgba(0,0,0,.38),

        inset
        0 1px 0
        rgba(255,255,255,.16);

    animation:
        fadeUp
        .75s
        cubic-bezier(.22,1,.36,1)
        both;

}


/*
|--------------------------------------------------------------------------
| TOP HIGHLIGHT
|--------------------------------------------------------------------------
*/

.login-card::before{

    content:"";

    position:absolute;

    top:0;

    left:12%;

    width:76%;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.48),
            transparent
        );

}


/*
|--------------------------------------------------------------------------
| LOGO AREA
|--------------------------------------------------------------------------
*/

.logo-area{

    text-align:center;

    margin-bottom:25px;

}


/*
|--------------------------------------------------------------------------
| Logo
|--------------------------------------------------------------------------
*/

.logo{

    width:175px;

    height:auto;

    margin:
        0 auto 10px;

    filter:
        drop-shadow(
            0 8px 14px
            rgba(0,0,0,.28)
        );

    animation:

        logoReveal
        .9s
        .12s
        cubic-bezier(.22,1,.36,1)
        both,

        logoFloat
        5s
        1.1s
        ease-in-out
        infinite;

    transition:
        transform .3s ease,
        filter .3s ease;

}


/*
|--------------------------------------------------------------------------
| Logo Hover
|--------------------------------------------------------------------------
*/

.logo:hover{

    transform:
        scale(1.05);

    filter:
        drop-shadow(
            0 10px 20px
            rgba(0,0,0,.34)
        );

}


/*
|--------------------------------------------------------------------------
| Welcome
|--------------------------------------------------------------------------
*/

.welcome{

    text-align:center;

    margin:
        0 0 24px;

    animation:
        contentReveal
        .65s
        .18s
        ease
        both;

}


.welcome h2{

    margin:
        0 0 7px;

    color:
        #ffffff;

    font-size:
        25px;

    line-height:
        1.2;

    font-weight:
        600;

    letter-spacing:
        -.3px;

}


.welcome span{

    display:block;

    color:
        rgba(255,255,255,.76);

    font-size:
        12px;

    line-height:
        1.5;

}


/*
|--------------------------------------------------------------------------
| ERROR MESSAGE
|--------------------------------------------------------------------------
*/

.error-message{

    display:flex;

    align-items:center;

    gap:10px;

    margin:
        0 0 17px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(255,180,170,.45);

    border-radius:
        10px;

    background:
        rgba(255,245,243,.94);

    color:
        #8d241b;

    font-size:
        11px;

    line-height:
        1.45;

    animation:
        errorReveal
        .35s
        ease
        both;

}


.error-message::before{

    content:"!";

    width:
        21px;

    height:
        21px;

    flex:
        0 0 21px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:
        #b42318;

    color:
        #ffffff;

    font-size:
        11px;

    font-weight:
        700;

}


/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

form{

    animation:
        contentReveal
        .7s
        .24s
        ease
        both;

}


/*
|--------------------------------------------------------------------------
| INPUT GROUP
|--------------------------------------------------------------------------
*/

.input-group{

    position:relative;

    display:flex;

    align-items:center;

    width:100%;

    min-height:
        54px;

    margin-bottom:
        14px;

    overflow:hidden;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius:
        13px;

    background:
        rgba(255,255,255,.94);

    box-shadow:
        0 5px 18px
        rgba(0,0,0,.08);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.input-group:focus-within{

    border-color:
        rgba(124,179,66,.9);

    box-shadow:
        0 0 0 3px
        rgba(124,179,66,.18),

        0 8px 22px
        rgba(0,0,0,.12);

    transform:
        translateY(-1px);

}


/*
|--------------------------------------------------------------------------
| Input Icon
|--------------------------------------------------------------------------
*/

.input-group > span{

    width:
        51px;

    height:
        54px;

    flex:
        0 0 51px;

    display:flex;

    align-items:center;

    justify-content:center;

    color:
        #496454;

    font-size:
        17px;

    background:
        rgba(242,247,243,.72);

    border-right:
        1px solid
        #e5ebe6;

}


/*
|--------------------------------------------------------------------------
| Input
|--------------------------------------------------------------------------
*/

.input-group input{

    flex:1;

    width:100%;

    min-width:0;

    height:
        54px;

    padding:
        0 14px;

    border:none;

    outline:none;

    background:
        transparent;

    color:
        #1c2820;

    font-family:
        inherit;

    font-size:
        13px;

    font-weight:
        500;

}


.input-group input::placeholder{

    color:
        #9aa49e;

    font-weight:
        400;

}


/*
|--------------------------------------------------------------------------
| Remember / Show Password
|--------------------------------------------------------------------------
*/

.remember{

    display:flex;

    align-items:center;

    gap:8px;

    margin:
        3px 0 21px;

    color:
        rgba(255,255,255,.78);

    font-size:
        11px;

    cursor:pointer;

    user-select:none;

}


.remember input{

    width:
        15px;

    height:
        15px;

    accent-color:
        #6da94f;

    cursor:pointer;

}


/*
|--------------------------------------------------------------------------
| Login Button
|--------------------------------------------------------------------------
*/

.login-btn{

    width:100%;

    min-height:
        52px;

    margin-top:
        2px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        12px;

    background:

        linear-gradient(
            135deg,
            #205f32,
            #164923
        );

    color:
        #ffffff;

    font-family:
        inherit;

    font-size:
        13px;

    font-weight:
        600;

    letter-spacing:
        .1px;

    cursor:pointer;

    box-shadow:
        0 9px 22px
        rgba(0,45,15,.30);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}


.login-btn:hover{

    background:

        linear-gradient(
            135deg,
            #28733c,
            #19582c
        );

    transform:
        translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(0,45,15,.36);

}


.login-btn:active{

    transform:
        translateY(0);

}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.login-card > .style1{

    margin-top:
        27px;

    color:
        rgba(255,255,255,.50);

    font-size:
        9px;

    line-height:
        1.5;

    text-align:center;

}


/*
|--------------------------------------------------------------------------
| Remove Old Inline-Style Dependence
|--------------------------------------------------------------------------
*/

.style1{

    color:
        rgba(255,255,255,.50);

}


.style3{

    color:
        rgba(255,255,255,.72);

    font-size:
        11px;

}


.style4{

    color:
        #ffffff;

}


.style5{

    color:
        rgba(255,255,255,.76);

    font-size:
        12px;

}


.style6{

    font-family:
        'Poppins',
        sans-serif;

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width:600px){

    .login-container{

        align-items:
            flex-start;

        padding:
            25px 15px 35px;

    }


    .login-card{

        width:
            100%;

        padding:
            31px 23px 25px;

        border-radius:
            21px;

    }


    .logo{

        width:
            155px;

    }


    .welcome h2{

        font-size:
            23px;

    }


    .input-group,
    .input-group input{

        min-height:
            52px;

        height:
            52px;

    }


    .input-group > span{

        height:
            52px;

        width:
            48px;

        flex-basis:
            48px;

    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width:380px){

    .login-card{

        padding:
            27px 19px 22px;

    }


    .logo{

        width:
            140px;

    }


    .welcome{

        margin-bottom:
            21px;

    }


    .welcome h2{

        font-size:
            22px;

    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion:reduce){

    body::before,
    .login-card,
    .logo,
    .welcome,
    form,
    .error-message{

        animation:
            none !important;

    }

}