/* =====================================================
   BEANFLOW LOGIN
===================================================== */


/* =====================================================
   COLORS
===================================================== */

:root {

    --espresso: #2B1B14;

    --roast: #5A3B2E;

    --cocoa: #8B6A55;

    --latte: #C9B19C;

    --cream: #F3E7D6;

    --soft-cream: #FFF9F1;

    --white: #FFFFFF;
}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


html,
body {

    width: 100%;

    min-height: 100%;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--espresso);
}


a {

    text-decoration: none;
}


button,
input {

    font-family: inherit;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

.login-page {

    min-height: 100vh;

    padding:
        40px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:

        linear-gradient(
            rgba(43,27,20,0.78),
            rgba(43,27,20,0.88)
        ),

        url("../images/beanflow-background.png");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}


/* =====================================================
   LOGIN CONTAINER
===================================================== */

.login-container {

    width: 100%;

    max-width: 1150px;

    min-height: 650px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    overflow: hidden;

    border:
        1px solid
        rgba(243,231,214,0.18);

    border-radius: 32px;

    background:
        var(--soft-cream);

    box-shadow:
        0 35px 90px
        rgba(0,0,0,0.35);
}


/* =====================================================
   LEFT
===================================================== */

.login-left {

    position: relative;

    padding:
        55px;

    display: flex;

    flex-direction: column;

    justify-content:
        space-between;

    overflow: hidden;

    background:

        linear-gradient(
            135deg,
            rgba(43,27,20,0.98),
            rgba(90,59,46,0.92)
        );

    color:
        var(--cream);
}


.login-left::after {

    content: "";

    position: absolute;

    width: 390px;

    height: 390px;

    right: -170px;

    bottom: -160px;

    border-radius: 50%;

    background:
        rgba(201,177,156,0.07);
}


/* =====================================================
   BRAND
===================================================== */

.login-brand {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 15px;

    color:
        var(--cream);
}


.login-brand img {

    width: 70px;

    height: 70px;

    object-fit: contain;
}


.login-brand-text {

    display: flex;

    flex-direction: column;
}


.login-brand-text strong {

    font-size: 28px;

    font-weight: 900;

    letter-spacing: 1px;
}


.login-brand-text span {

    margin-top: 4px;

    color:
        var(--latte);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 4px;
}


/* =====================================================
   WELCOME
===================================================== */

.login-welcome {

    position: relative;

    z-index: 2;

    margin-top: 90px;
}


.login-eyebrow {

    color:
        var(--latte);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 5px;
}


.login-welcome h1 {

    max-width: 500px;

    margin-top: 15px;

    color:
        var(--white);

    font-size:
        clamp(
            50px,
            5vw,
            72px
        );

    line-height:
        0.94;

    letter-spacing:
        -4px;
}


.login-welcome h1 span {

    display: block;

    margin-top: 7px;

    color:
        var(--cream);
}


.login-intro {

    max-width: 420px;

    margin-top: 27px;

    color:
        rgba(243,231,214,0.78);

    font-size: 14px;

    line-height: 1.8;
}


/* =====================================================
   BACK
===================================================== */

.back-home {

    position: relative;

    z-index: 2;

    color:
        var(--cream);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}


.back-home:hover {

    color:
        var(--latte);
}


/* =====================================================
   RIGHT
===================================================== */

.login-right {

    padding:
        65px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--soft-cream);
}


.login-form-wrapper {

    width: 100%;

    max-width: 410px;
}


/* =====================================================
   FORM TITLE
===================================================== */

.form-eyebrow {

    color:
        var(--cocoa);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 4px;
}


.login-form-wrapper h2 {

    margin-top: 7px;

    color:
        var(--espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 50px;

    line-height: 1;
}


.form-description {

    margin-top: 13px;

    margin-bottom: 32px;

    color:
        var(--cocoa);

    font-size: 12px;

    line-height: 1.6;
}


/* =====================================================
   ERROR
===================================================== */

.login-error {

    margin-bottom: 22px;

    padding:
        14px 16px;

    border:
        1px solid
        rgba(154,67,59,0.20);

    border-left:
        4px solid
        #9A433B;

    border-radius: 9px;

    background:
        #F0D8D4;

    color:
        #873B35;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.5;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {

    margin-bottom: 21px;
}


.form-group label {

    display: block;

    margin-bottom: 9px;

    color:
        var(--espresso);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.5px;
}


.form-group input {

    width: 100%;

    height: 54px;

    padding:
        0 16px;

    border:
        1px solid
        rgba(90,59,46,0.20);

    border-radius: 11px;

    outline: none;

    background:
        var(--white);

    color:
        var(--espresso);

    font-size: 13px;

    transition:
        0.2s;
}


.form-group input::placeholder {

    color:
        #A89687;
}


.form-group input:focus {

    border-color:
        var(--roast);

    box-shadow:
        0 0 0 3px
        rgba(90,59,46,0.08);
}


/* =====================================================
   PASSWORD
===================================================== */

.password-wrapper {

    position: relative;
}


.password-wrapper input {

    padding-right: 75px;
}


.show-password {

    position: absolute;

    top: 50%;

    right: 15px;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color:
        var(--roast);

    cursor: pointer;

    font-size: 9px;

    font-weight: 900;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {

    width: 100%;

    height: 55px;

    margin-top: 5px;

    border: none;

    border-radius: 29px;

    background:
        var(--roast);

    color:
        var(--cream);

    cursor: pointer;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    box-shadow:
        0 12px 25px
        rgba(43,27,20,0.14);

    transition:
        0.2s;
}


.login-button:hover {

    background:
        var(--espresso);

    transform:
        translateY(-2px);
}


/* =====================================================
   REGISTER
===================================================== */

.register-link {

    margin-top: 25px;

    color:
        var(--cocoa);

    font-size: 11px;

    text-align: center;
}


.register-link a {

    margin-left: 5px;

    color:
        var(--roast);

    font-weight: 900;
}


.register-link a:hover {

    color:
        var(--espresso);

    text-decoration: underline;
}


/* =====================================================
   TABLET
===================================================== */

@media
(max-width: 900px) {


    .login-container {

        max-width: 650px;

        grid-template-columns:
            1fr;
    }


    .login-left {

        min-height: 430px;

        padding:
            40px;
    }


    .login-welcome {

        margin-top: 55px;
    }


    .back-home {

        margin-top: 40px;
    }


    .login-right {

        padding:
            55px 40px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media
(max-width: 520px) {


    .login-page {

        padding: 0;
    }


    .login-container {

        min-height: 100vh;

        border: none;

        border-radius: 0;
    }


    .login-left {

        min-height: 390px;

        padding:
            28px 24px;
    }


    .login-brand img {

        width: 55px;

        height: 55px;
    }


    .login-brand-text strong {

        font-size: 21px;
    }


    .login-brand-text span {

        font-size: 6px;
    }


    .login-welcome {

        margin-top: 45px;
    }


    .login-welcome h1 {

        font-size: 46px;

        letter-spacing:
            -3px;
    }


    .login-right {

        padding:
            45px 24px;
    }


    .login-form-wrapper h2 {

        font-size: 42px;
    }

}