.auth-page {
    min-height: 100vh;
    background: #f7f7f2;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 1.04fr) minmax(420px, .96fr);
    gap: 0;
    padding: 15px;
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: calc(100vh - 30px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px clamp(30px, 5.5vw, 76px) 28px;
    border-radius: 28px;
    background: #35443b;
    color: #fff;
    isolation: isolate;
}

.auth-showcase-photo,
.auth-showcase-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-showcase-photo {
    object-fit: cover;
    object-position: center;
    animation: auth-image-in 1.2s both var(--ease-out);
}

@keyframes auth-image-in {
    from { opacity: .55; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

.auth-showcase-shade {
    z-index: 0;
    background: linear-gradient(180deg, rgba(22, 35, 29, .52), rgba(22, 35, 29, .04) 37%, rgba(22, 35, 29, .68));
}

.auth-showcase > *:not(.auth-showcase-photo):not(.auth-showcase-shade) {
    position: relative;
    z-index: 1;
}

.brand-on-dark {
    align-self: flex-start;
    color: #fff;
}

.brand-on-dark .brand-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
}

.brand-on-dark .brand-word {
    color: #fff;
}

.brand-on-dark .brand-word small {
    color: rgba(255, 255, 255, .69);
}

.brand-on-dark .brand-dot {
    color: var(--lime);
}

.auth-showcase-copy {
    max-width: 560px;
    margin: auto 0;
    padding: 60px 0 80px;
    animation: rise-in .75s .12s both var(--ease-out);
}

.auth-showcase-copy .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.auth-showcase h1 {
    margin: 18px 0 17px;
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: 500;
    letter-spacing: -.09em;
    line-height: .91;
}

.auth-showcase h1 em {
    color: var(--lime);
    font-size: .88em;
}

.auth-showcase-copy > p:last-child {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    line-height: 1.72;
}

.auth-photo-caption {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .85);
    font-size: .74rem;
    font-weight: 600;
}

.auth-photo-caption span {
    color: var(--lime);
    font-size: 1.15rem;
}

.auth-photo-index {
    position: absolute !important;
    right: 30px;
    bottom: 30px;
    color: rgba(255, 255, 255, .7);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.auth-content {
    position: relative;
    display: flex;
    min-height: calc(100vh - 30px);
    flex-direction: column;
    justify-content: space-between;
    padding: 31px clamp(24px, 5.3vw, 78px) 25px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: #7b877d;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s var(--ease-out);
}

.auth-back span {
    font-size: 1.1rem;
}

.auth-back:hover {
    color: var(--ink);
    transform: translateX(-2px);
}

.auth-form-wrap {
    width: min(100%, 410px);
    align-self: center;
    margin: auto;
    padding: 45px 0;
    animation: rise-in .7s .1s both var(--ease-out);
}

.auth-form-wrap > .eyebrow {
    margin-bottom: 11px;
}

.auth-heading {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -.085em;
    line-height: 1;
}

.auth-heading em {
    color: #7f9a52;
}

.auth-subtitle {
    margin: 13px 0 30px;
    color: #78847b;
    font-size: .91rem;
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #536158;
    font-size: .76rem;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #e0e5dc;
    border-radius: 13px;
    background: rgba(255, 255, 255, .73);
    color: var(--ink);
    font-size: .91rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-field input::placeholder {
    color: #a0a99f;
}

.form-field input:hover {
    border-color: #cbd5c4;
}

.form-field input:focus {
    border-color: #a7bc89;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(181, 215, 129, .17);
}

.auth-message {
    margin: -3px 0 0;
    padding: 12px 14px;
    border: 1px solid #efd4c8;
    border-radius: 11px;
    background: #fff5ef;
    color: #9d5940;
    font-size: .79rem;
    line-height: 1.5;
}

.auth-message.is-success {
    border-color: #d7e5c0;
    background: #f4f9e8;
    color: #5d7838;
}

.auth-submit {
    margin-top: 2px;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
    color: #7c877e;
    font-size: .78rem;
}

.auth-switch a {
    color: #506441;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-demo-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 31px 0 0;
    color: #9aa39b;
    font-size: .67rem;
}

.auth-demo-note span {
    color: #95ad64;
}

.auth-corner-note {
    align-self: flex-end;
    color: #a7aea6;
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .15em;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(330px, .9fr) minmax(370px, 1.1fr);
    }

    .auth-showcase {
        padding-right: 30px;
        padding-left: 30px;
    }

    .auth-showcase h1 {
        font-size: clamp(3rem, 6.2vw, 4.6rem);
    }

    .auth-content {
        padding-right: 31px;
        padding-left: 31px;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .auth-showcase {
        min-height: 290px;
        flex: 0 0 290px;
        margin: 10px 10px 0;
        padding: 22px 24px;
        border-radius: 22px 22px 12px 12px;
    }

    .brand-on-dark .brand-mark {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .auth-showcase-copy {
        margin: auto 0;
        padding: 25px 0 17px;
    }

    .auth-showcase-copy .eyebrow {
        font-size: .6rem;
    }

    .auth-showcase h1 {
        margin: 11px 0 8px;
        font-size: clamp(2.5rem, 9vw, 3.8rem);
    }

    .auth-showcase-copy > p:last-child {
        max-width: 360px;
        font-size: .78rem;
    }

    .auth-photo-caption {
        display: none;
    }

    .auth-photo-index {
        right: 20px;
        bottom: 17px;
        font-size: .5rem;
    }

    .auth-content {
        min-height: calc(100vh - 300px);
        padding: 21px 25px 20px;
    }

    .auth-form-wrap {
        width: min(100%, 430px);
        padding: 32px 0;
    }

    .auth-form-wrap > .eyebrow {
        font-size: .62rem;
    }

    .auth-heading {
        font-size: 3rem;
    }

    .auth-subtitle {
        margin-bottom: 23px;
    }
}

@media (max-width: 390px) {
    .auth-showcase {
        min-height: 270px;
        flex-basis: 270px;
    }

    .auth-content {
        min-height: calc(100vh - 280px);
        padding-right: 19px;
        padding-left: 19px;
    }

    .auth-switch {
        flex-wrap: wrap;
    }
}
