.auth-body,
.auth-body * {
    box-sizing: border-box;
}

.auth-body {
    --auth-ink: #092938;
    --auth-muted: #637078;
    --auth-line: #dce4df;
    --auth-soft: #f4f7f3;
    min-width: 0;
    min-height: 100dvh;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 11% 12%, rgba(165, 227, 127, .34), transparent 26rem),
        radial-gradient(circle at 88% 90%, rgba(9, 41, 56, .12), transparent 30rem),
        #edf2ed;
}

.auth-page {
    width: 100%;
    min-height: 100dvh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(1220px, 100%);
    min-height: min(780px, calc(100dvh - 48px));
    display: grid;
    grid-template-columns: minmax(400px, .92fr) minmax(520px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(9, 41, 56, .1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(9, 41, 56, .16), 0 3px 12px rgba(9, 41, 56, .08);
}

.auth-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
    background: var(--auth-ink);
    color: #fff;
}

.auth-visual__image,
.auth-visual__veil,
.auth-visual__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-visual__image {
    z-index: -3;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(1.015);
}

.auth-visual__veil {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(9, 41, 56, .1) 0%, rgba(9, 41, 56, .18) 32%, rgba(9, 41, 56, .96) 100%),
        linear-gradient(90deg, rgba(9, 41, 56, .28), transparent 70%);
}

.auth-visual__grid {
    z-index: -1;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, #000, transparent 54%);
}

.auth-visual__brand {
    position: absolute;
    top: 34px;
    left: 34px;
    width: min(230px, calc(100% - 68px));
    padding: 13px 16px;
    display: inline-flex;
    border-radius: 13px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 9px 30px rgba(9, 41, 56, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-visual__brand img,
.auth-mobile-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-visual__content {
    position: absolute;
    inset: auto 0 0;
    padding: clamp(38px, 5vw, 62px);
}

.auth-visual__eyebrow {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #d5efc6;
    font-size: .77rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-visual__eyebrow span {
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

.auth-visual h2 {
    max-width: 490px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 4vw, 4.2rem);
    font-weight: 570;
    letter-spacing: -.052em;
    line-height: 1.02;
}

.auth-visual__description {
    max-width: 450px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-visual__benefits {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-visual__benefits span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
    font-size: .74rem;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.auth-panel {
    min-width: 0;
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(165, 227, 127, .14), transparent 19rem),
        #fff;
}

.auth-panel__inner {
    width: min(100%, 570px);
    min-height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.auth-mobile-brand {
    display: none;
}

.auth-switcher {
    position: relative;
    width: 100%;
    height: 52px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    background: var(--auth-soft);
}

.auth-switcher__indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 9px;
    background: var(--auth-ink);
    box-shadow: 0 5px 15px rgba(9, 41, 56, .18);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.auth-body[data-auth-mode="signup"] .auth-switcher__indicator {
    transform: translateX(100%);
}

.auth-switcher__tab {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--auth-muted);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.auth-switcher__tab[aria-selected="true"] {
    color: #fff;
}

.auth-forms {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.auth-form-panel {
    grid-area: 1 / 1;
    width: 100%;
    padding: clamp(36px, 5vh, 50px) 0 18px;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(26px);
    transition:
        opacity .22s ease,
        transform .32s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .32s;
}

.auth-form-panel--login {
    transform: translateX(-26px);
}

.auth-form-panel[aria-hidden="false"] {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: .05s, .05s, 0s;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading__kicker {
    margin: 0 0 10px;
    color: #537047;
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(2.1rem, 3vw, 3.1rem);
    font-weight: 590;
    letter-spacing: -.048em;
    line-height: 1.03;
    outline: none;
}

.auth-heading > p:last-child {
    margin: 13px 0 0;
    color: var(--auth-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.auth-form {
    width: 100%;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.auth-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--auth-ink);
    font-size: .78rem;
    font-weight: 680;
}

.auth-form > .auth-field + .auth-field {
    margin-top: 19px;
}

.auth-field > .css-input,
.auth-password > .css-input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    outline: none;
    background: #fbfcfb;
    color: var(--auth-ink);
    font: inherit;
    font-size: .91rem;
    font-weight: 450;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-field > .css-input:hover,
.auth-password > .css-input:hover {
    border-color: #aab8b0;
    background: #fff;
}

.auth-field > .css-input:focus,
.auth-password > .css-input:focus {
    border-width: 1px;
    border-color: #6d9c52;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(165, 227, 127, .24);
}

.auth-field .css-input::placeholder {
    color: #9ba6a0;
}

.auth-password {
    position: relative;
    display: block;
}

.auth-password > .css-input {
    padding-right: 92px;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 36px;
    padding: 0 10px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #526169;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-password__toggle:hover {
    background: var(--auth-soft);
    color: var(--auth-ink);
}

.auth-form__meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: .8rem;
}

.auth-form__meta > a,
.auth-check a,
.reset-login-link {
    color: var(--auth-ink);
    font-weight: 670;
    text-decoration-color: rgba(9, 41, 56, .36);
    text-underline-offset: 3px;
}

.auth-check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--auth-muted);
    font-size: .8rem;
    line-height: 1.45;
    cursor: pointer;
}

.auth-check > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-check__box {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid #aeb9b3;
    border-radius: 6px;
    background: #fff;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-check__box::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--auth-ink);
    border-bottom: 2px solid var(--auth-ink);
    opacity: 0;
    transform: rotate(45deg) scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.auth-check > input:checked + .auth-check__box {
    border-color: var(--primary);
    background: var(--primary);
}

.auth-check > input:checked + .auth-check__box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.auth-check > input:focus-visible + .auth-check__box {
    box-shadow: 0 0 0 4px rgba(165, 227, 127, .3);
}

.auth-check--agreement {
    margin-top: 21px;
}

.turnstile-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.turnstile-container .cf-turnstile {
    width: 100%;
}

.auth-status {
    min-height: 20px;
    margin: 11px 0 0;
    color: #b3401c;
    font-size: .8rem;
    line-height: 1.4;
}

.auth-status.success {
    color: #487635;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--auth-ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(101, 153, 70, .19);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(101, 153, 70, .25);
    filter: saturate(1.05);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .62;
}

.auth-panel__note {
    margin: auto 0 0;
    padding-top: 12px;
    color: #98a29d;
    font-size: .68rem;
    text-align: center;
}

.auth-visual__brand:focus-visible,
.auth-mobile-brand:focus-visible,
.auth-switcher__tab:focus-visible,
.auth-form__meta a:focus-visible,
.auth-check a:focus-visible,
.auth-password__toggle:focus-visible,
.auth-submit:focus-visible,
.reset-login-link:focus-visible {
    outline: 3px solid rgba(165, 227, 127, .8);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .auth-page {
        padding: 0;
        place-items: stretch;
    }

    .auth-shell {
        width: 100%;
        min-height: 100dvh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-visual {
        min-height: 250px;
        max-height: 32vh;
    }

    .auth-visual__image {
        object-position: 50% 46%;
    }

    .auth-visual__brand,
    .auth-visual__description,
    .auth-visual__benefits {
        display: none;
    }

    .auth-visual__content {
        padding: 28px clamp(24px, 7vw, 60px);
    }

    .auth-visual h2 {
        max-width: 650px;
        font-size: clamp(2rem, 7vw, 3.35rem);
    }

    .auth-panel {
        padding: 34px clamp(24px, 7vw, 70px) 26px;
        overflow: visible;
    }

    .auth-panel__inner {
        width: min(100%, 650px);
    }

    .auth-mobile-brand {
        width: min(210px, 58vw);
        margin-bottom: 26px;
        display: inline-flex;
    }

    .auth-form-panel {
        align-self: start;
    }
}

@media (max-width: 620px) {
    .auth-visual {
        min-height: 205px;
        max-height: none;
    }

    .auth-visual__content {
        padding: 24px;
    }

    .auth-visual__eyebrow {
        margin-bottom: 12px;
        font-size: .67rem;
    }

    .auth-panel {
        padding: 28px 20px 24px;
    }

    .auth-mobile-brand {
        margin-bottom: 22px;
    }

    .auth-switcher {
        height: 49px;
    }

    .auth-form-panel {
        padding-top: 32px;
    }

    .auth-heading {
        margin-bottom: 26px;
    }

    .auth-heading h1 {
        font-size: 2.12rem;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .auth-form__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .auth-panel__note {
        padding-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-switcher__indicator,
    .auth-form-panel,
    .auth-check__box,
    .auth-check__box::after,
    .auth-submit,
    .auth-field .css-input {
        transition-duration: .01ms !important;
    }
}
