/* =========================================================
   HAMMER CRAFT
   LOGIN PAGE
========================================================= */


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


:root {

    --paper:
        #f2eee7;

    --paper-dark:
        #e7e0d6;

    --ink:
        #252321;

    --brown:
        #9b6739;

    --muted:
        #706b64;

    --line:
        rgba(
            37,
            35,
            33,
            0.16
        );

    --error:
        #8d3d35;

    --success:
        #53694f;

}


html {
    min-height: 100%;
}


body {

    min-height:
        100vh;

    background:
        var(--paper);

    color:
        var(--ink);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


img {
    display: block;
}


a {
    color: inherit;
}


button,
input {
    font: inherit;
}



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

.login-header {

    width:
        100%;

    min-height:
        92px;

    padding:
        0
        6vw;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;

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

}


.login-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    text-decoration:
        none;

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        3px;

}


.login-brand img {

    width:
        56px;

    height:
        56px;

    object-fit:
        contain;

}


.back-link {

    text-decoration:
        none;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        1.4px;

}


.back-link:hover {

    color:
        var(--brown);

}



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

.login-page {

    min-height:
        calc(
            100vh -
            160px
        );

    padding:
        90px
        7vw
        110px;

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1.1fr
        )
        minmax(
            420px,
            .7fr
        );

    align-items:
        center;

    gap:
        8vw;

}



/* =========================================================
   INTRO
========================================================= */

.login-intro {

    max-width:
        850px;

}


.eyebrow {

    color:
        var(--brown);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        3.5px;

}


.login-intro h1 {

    margin-top:
        24px;

    font-size:
        clamp(
            78px,
            8.5vw,
            145px
        );

    line-height:
        .84;

    letter-spacing:
        -.07em;

}


.login-intro h1 em {

    display:
        block;

    color:
        var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-style:
        italic;

    font-weight:
        400;

}


.login-intro > p {

    max-width:
        650px;

    margin-top:
        38px;

    color:
        var(--muted);

    font-size:
        16px;

    line-height:
        1.8;

}



/* =========================================================
   LOGIN POINTS
========================================================= */

.login-points {

    max-width:
        680px;

    margin-top:
        55px;

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

}


.login-points article {

    padding:
        22px
        0;

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

    display:
        grid;

    grid-template-columns:
        45px
        1fr;

    gap:
        18px;

}


.login-points article > span {

    color:
        var(--brown);

    font-size:
        8px;

    font-weight:
        700;

}


.login-points strong {

    font-size:
        13px;

    letter-spacing:
        .5px;

}


.login-points p {

    margin-top:
        7px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.6;

}



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

.login-card {

    width:
        100%;

    padding:
        38px;

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

    background:
        rgba(
            255,
            255,
            255,
            .08
        );

}


.login-card-heading > span {

    color:
        var(--brown);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        2px;

}


.login-card-heading h2 {

    margin-top:
        10px;

    font-size:
        38px;

    letter-spacing:
        -.04em;

}



/* =========================================================
   FORM
========================================================= */

.login-form {

    margin-top:
        35px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        22px;

}


.login-form > label {

    display:
        flex;

    flex-direction:
        column;

    gap:
        9px;

    color:
        var(--muted);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1.4px;

}


.login-form input {

    width:
        100%;

    min-height:
        54px;

    padding:
        0
        15px;

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

    border-radius:
        0;

    outline:
        none;

    background:
        var(--paper);

    color:
        var(--ink);

}


.login-form input::placeholder {

    color:
        rgba(
            37,
            35,
            33,
            .35
        );

}


.login-form input:focus {

    border-color:
        var(--brown);

}


.login-form input:disabled {

    opacity:
        .55;

}



/* =========================================================
   PASSWORD FIELD
========================================================= */

.password-field {

    position:
        relative;

}


.password-field input {

    padding-right:
        75px;

}


.password-toggle {

    min-width:
        58px;

    height:
        40px;

    position:
        absolute;

    right:
        7px;

    top:
        7px;

    border:
        none;

    background:
        transparent;

    color:
        var(--brown);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1px;

    cursor:
        pointer;

}



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

.login-options {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

}


.remember-option {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    color:
        var(--muted);

    font-size:
        10px;

    cursor:
        pointer;

}


.remember-option input {

    width:
        15px;

    height:
        15px;

    min-height:
        auto;

}


.forgot-link {

    color:
        var(--brown);

    text-decoration:
        none;

    font-size:
        9px;

    font-weight:
        700;

}


.forgot-link:hover {

    text-decoration:
        underline;

}



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

.login-button {

    width:
        100%;

    min-height:
        58px;

    margin-top:
        3px;

    padding:
        0
        20px;

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

    background:
        var(--ink);

    color:
        white;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        1.5px;

    cursor:
        pointer;

    transition:
        background .2s ease,
        border-color .2s ease;

}


.login-button:hover {

    border-color:
        var(--brown);

    background:
        var(--brown);

}


.login-button:disabled {

    opacity:
        .55;

    cursor:
        wait;

}



/* =========================================================
   MESSAGE
========================================================= */

.login-message {

    min-height:
        18px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.5;

}


.login-message.error {

    color:
        var(--error);

}


.login-message.success {

    color:
        var(--success);

}



/* =========================================================
   REGISTER
========================================================= */

.register-area {

    margin-top:
        30px;

    padding-top:
        25px;

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

}


.register-area > span {

    display:
        block;

    color:
        var(--muted);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1.5px;

}


.register-link {

    display:
        inline-block;

    margin-top:
        12px;

    color:
        var(--brown);

    text-decoration:
        none;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        1px;

}


.register-link:hover {

    text-decoration:
        underline;

}



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

.login-footer {

    min-height:
        68px;

    padding:
        20px
        6vw;

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

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--muted);

    font-size:
        8px;

    letter-spacing:
        1px;

}



/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 950px) {

    .login-page {

        grid-template-columns:
            1fr;

        gap:
            65px;

    }


    .login-card {

        max-width:
            650px;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 600px) {

    .login-header {

        min-height:
            72px;

        padding:
            0
            18px;

    }


    .login-brand img {

        width:
            42px;

        height:
            42px;

    }


    .login-brand span {

        display:
            none;

    }


    .login-page {

        padding:
            65px
            18px
            80px;

        gap:
            50px;

    }


    .login-intro h1 {

        font-size:
            66px;

    }


    .login-intro > p {

        font-size:
            14px;

    }


    .login-card {

        padding:
            24px;

    }


    .login-card-heading h2 {

        font-size:
            32px;

    }


    .login-options {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            12px;

    }


    .login-footer {

        padding:
            22px
            18px;

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            8px;

    }

}