@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --ink: #202622;
    --muted: #778079;
    --cream: #f7f6f1;
    --paper: #fffefa;
    --line: #dfe4dc;
    --green: #285c48;
    --green-dark: #1d4335;
    --lime: #d8ec9b;
    --orange: #e98550;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(380px, 43%) 1fr;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 46px clamp(36px, 6vw, 96px) 48px;
    color: #f8f7ef;
    background-color: var(--green);
    background-image: radial-gradient(circle at 82% 18%, rgba(216, 236, 155, .2) 0 2px, transparent 3px), radial-gradient(circle at 20% 76%, rgba(216, 236, 155, .13) 0 1px, transparent 2px);
    background-size: 34px 34px, 23px 23px;
}

.brand-panel::after {
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(216, 236, 155, .26);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(216, 236, 155, .08), 0 0 0 58px rgba(216, 236, 155, .05);
    content: '';
}

.brand,
.mobile-brand {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--green-dark);
    background: var(--lime);
    border-radius: 11px 11px 11px 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin-top: auto;
    margin-bottom: 13vh;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .98;
}

.brand-copy h1 em {
    color: var(--lime);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.brand-description {
    max-width: 265px;
    margin: 25px 0 0;
    color: rgba(248, 247, 239, .72);
    font-size: 15px;
    line-height: 1.6;
}

.table-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(248, 247, 239, .7);
    font-size: 12px;
}

.table-note-dot {
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(216, 236, 155, .13);
}

.form-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 40px 32px;
    background: var(--paper);
}

.form-wrap {
    width: min(100%, 390px);
}

.mobile-brand {
    display: none;
    color: var(--green);
}

.form-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 37px);
    font-weight: 700;
    letter-spacing: -.04em;
}

.form-heading > p:last-child {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.login-form {
    margin-top: 36px;
}

.field-group + .field-group {
    margin-top: 22px;
}

.field-group label,
.field-label-row label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.field-label-row label {
    margin-bottom: 9px;
}

input[type='email'],
input[type='password'] {
    width: 100%;
    height: 51px;
    padding: 0 16px;
    color: var(--ink);
    background: #fbfcf8;
    border: 1px solid var(--line);
    border-radius: 4px;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

input::placeholder {
    color: #a1aaa3;
}

input[type='email']:focus,
input[type='password']:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(40, 92, 72, .12);
}

.text-link {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--orange);
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
}

.remember-me input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fbfcf8;
}

.remember-me input:checked + .checkmark {
    background: var(--green);
    border-color: var(--green);
    box-shadow: inset 0 0 0 4px #fbfcf8;
}

.submit-button {
    display: flex;
    width: 100%;
    height: 53px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 0 18px 0 21px;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.submit-button span {
    font-size: 21px;
    font-weight: 400;
}

.submit-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.signup-prompt {
    margin: 31px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.footer-note {
    margin: 76px 0 0;
    color: #a0aaa2;
    font-size: 11px;
    text-align: center;
}

.footer-note strong {
    color: var(--green);
    font-weight: 700;
}

@media (max-width: 720px) {
    .login-page {
        display: block;
        min-height: 100vh;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        align-items: start;
        padding: 32px 24px 38px;
    }

    .mobile-brand {
        display: inline-flex;
        margin-bottom: 70px;
    }

    .footer-note {
        margin-top: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
