:root {
    --coffee: #40291f;
    --brown: #6d4934;
    --cream: #fffaf0;
    --butter: #f5dc85;
    --line: #d8c9ad;
    --danger: #a33b35;
    --success: #47744d;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--cream);
    color: var(--coffee);
    font-family: 'DM Sans', Arial, sans-serif;
}

a {
    color: inherit;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(430px, 1.1fr);
}

.visual {
    position: relative;

    min-height: 100vh;

    background: var(--coffee);
    color: var(--cream);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4rem;

    overflow: hidden;
}

.visual::before,
.visual::after {
    content: "";
    position: absolute;

    width: 540px;
    height: 540px;

    border-radius: 50%;

    border: 1px solid rgba(245, 220, 133, .22);
}

.visual::after {
    width: 390px;
    height: 390px;
}

.visual-content {
    position: relative;
    z-index: 2;

    text-align: center;

    max-width: 520px;
}

.logo {
    display: inline-block;

    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;

    color: var(--butter);

    text-decoration: none;

    margin-bottom: 4rem;
}

.visual h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;

    font-size: clamp(3rem, 6vw, 6.5rem);
    line-height: .95;

    margin: 0 0 1.5rem;
}

.visual h1 span {
    color: var(--butter);
    display: block;
}

.visual p {
    max-width: 450px;
    margin: auto;

    font-size: 1rem;
    line-height: 1.7;

    opacity: .9;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: clamp(2rem, 6vw, 6rem);
}

.card {
    width: 100%;
    max-width: 540px;
}

.eyebrow {
    display: block;

    font-size: .75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .18em;

    color: var(--brown);

    margin-bottom: 1rem;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.05;

    margin: 0 0 1rem;
}

.intro {
    margin: 0 0 2rem;

    color: #725e52;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.15rem;
}

label {
    display: block;

    margin-bottom: .45rem;

    font-size: .88rem;
    font-weight: 700;
}

input {
    width: 100%;

    min-height: 52px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: #fff;

    color: var(--coffee);

    padding: .8rem 1rem;

    font: inherit;

    outline: none;

    transition: border .2s, box-shadow .2s;
}

input:focus {
    border-color: var(--brown);

    box-shadow:
        0 0 0 3px rgba(109, 73, 52, .09);
}

.password-row {
    position: relative;
}

.password-row input {
    padding-right: 5rem;
}

.show-password {
    position: absolute;
    top: 50%;
    right: .7rem;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--brown);

    font-weight: 700;
    cursor: pointer;

    padding: .5rem;
}

.submit {
    width: 100%;

    min-height: 54px;

    border: 0;
    border-radius: 999px;

    background: var(--coffee);
    color: var(--cream);

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    padding: .9rem 1.3rem;

    transition: transform .2s, background .2s;
}

.submit:hover {
    background: var(--brown);

    transform: translateY(-1px);
}

.message {
    padding: .9rem 1rem;

    border-radius: 10px;

    margin-bottom: 1.4rem;

    line-height: 1.55;
}

.message.error {
    background: #f7e2df;
    color: #7f2c28;
    border: 1px solid #e5b5b0;
}

.message.success {
    background: #e6f2e6;
    color: #315e37;
    border: 1px solid #bed8c1;
}

.footer-link {
    text-align: center;

    margin: 1.5rem 0 0;

    color: #735e51;

    font-size: .94rem;
}

.footer-link a {
    font-weight: 700;
    color: var(--coffee);
}

.back {
    display: inline-flex;

    margin-bottom: 2rem;

    text-decoration: none;

    font-size: .9rem;
    font-weight: 700;

    color: var(--brown);
}

.helper {
    color: #806c61;
    font-size: .8rem;
    margin-top: .35rem;
}

@media (max-width: 850px) {

    .page {
        display: block;
    }

    .visual {
        min-height: auto;

        padding: 2rem 1.3rem 3rem;
    }

    .visual::before {
        width: 330px;
        height: 330px;
    }

    .visual::after {
        width: 240px;
        height: 240px;
    }

    .visual-content {
        width: 100%;
    }

    .logo {
        margin-bottom: 2rem;
    }

    .visual h1 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }

    .visual p {
        font-size: .92rem;
    }

    .content {
        padding: 2.3rem 1.25rem 4rem;
    }

    h2 {
        font-size: 2.7rem;
    }
}