.sign-page {
    min-width: 320px;
    color: var(--home-navy);
    background: var(--home-bg);
    overflow-x: hidden;
}

.sign-page button,
.sign-page input,
.sign-page select {
    font: inherit;
}

.sign-page .nav-links > a.is-active::after {
    transform: scaleX(0);
}

.sign-page .ad-slot,
.sign-page .subscribe-pop {
    display: none !important;
}

.auth-page {
    width: min(100% - 40px, 1120px);
    min-height: 1050px !important;
    margin: 0 auto;
    padding: 150px 0 76px;
}

.auth-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-mode-label {
    padding: 8px 3px;
    color: #617782;
    background: transparent;
    border: 0;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.sign-page[data-auth-mode="register"] .auth-mode-label[data-mode-target="register"],
.sign-page[data-auth-mode="login"] .auth-mode-label[data-mode-target="login"] {
    color: var(--home-navy);
    font-weight: 700;
}

.auth-switch {
    position: relative;
    width: 68px;
    height: 32px;
    padding: 3px;
    background: var(--home-navy);
    border: 0;
    border-radius: 999px;
    box-shadow: inset 0 1px 4px rgba(0, 20, 35, .28);
    cursor: pointer;
}

.auth-switch span {
    display: block;
    width: 26px;
    height: 26px;
    background: var(--home-cyan-dark);
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 29, 48, .25);
    transform: translateX(0);
    transition: transform .25s ease;
}

.sign-page[data-auth-mode="login"] .auth-switch span {
    transform: translateX(36px);
}

.auth-switch:focus-visible,
.auth-mode-label:focus-visible {
    outline: 3px solid rgba(88, 184, 216, .38);
    outline-offset: 3px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    grid-template-areas: "promo form";
    align-items: center;
    gap: 105px;
}

.sign-page[data-auth-mode="register"] .auth-layout {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    grid-template-areas: "form promo";
}

.auth-promo {
    position: relative;
    grid-area: promo;
    display: flex;
    min-height: 570px;
    padding: 54px 48px 42px;
    color: #fff;
    background: linear-gradient(145deg, #55b4d3 0%, #09adeb 55%, #5db7d5 100%);
    border-radius: 24px;
    box-shadow: 0 26px 55px rgba(0, 67, 99, .13);
    overflow: hidden;
}

.auth-promo::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.auth-promo__copy {
    position: relative;
    z-index: 1;
    max-width: 390px;
    align-self: flex-start;
}

.auth-promo__copy--register,
.sign-page[data-auth-mode="register"] .auth-promo__copy--login {
    display: none;
}

.sign-page[data-auth-mode="register"] .auth-promo__copy--register {
    display: block;
}

.auth-promo__eyebrow {
    margin: 0 0 15px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
}

.auth-promo__copy h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.auth-promo__copy p:last-child {
    max-width: 365px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .93);
    font-size: 21px;
    font-weight: 450;
    line-height: 1.35;
}

.auth-promo__tagline {
    position: absolute;
    bottom: 32px;
    left: 48px;
    z-index: 1;
    font-size: 21px;
    font-weight: 450;
}

.auth-promo__mark {
    position: absolute;
    right: 36px;
    bottom: 29px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
}

.auth-promo__mark svg {
    width: 23px;
    height: 23px;
}

.auth-form-panel {
    grid-area: form;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

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

.sign-page[data-auth-mode="login"] .auth-form[data-auth-form="login"],
.sign-page[data-auth-mode="register"] .auth-form[data-auth-form="register"] {
    display: flex;
    animation: auth-form-in .28s ease both;
}

@keyframes auth-form-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form__heading {
    margin-bottom: 4px;
    text-align: center;
}

.auth-form__heading img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.auth-form__heading h1 {
    margin: 5px 0 4px;
    color: #07151d;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.auth-form__heading p {
    margin: 0;
    color: #5d717b;
    font-size: 14px;
}

.auth-google,
.auth-submit {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.auth-google {
    color: #304c5b;
    background: #fff;
    border: 1px solid #d9e5ea;
    box-shadow: 0 7px 18px rgba(0, 48, 72, .06);
    font-weight: 600;
}

.auth-google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.auth-google--gis {
    min-height: 46px;
    padding: 0;
    overflow: hidden;
}

.auth-google--gis > div,
.auth-google--gis iframe {
    width: 100% !important;
}

.auth-google--gis.is-unavailable {
    padding: 0 14px;
    color: #d70015;
    font-size: 13px;
    text-align: center;
}

.auth-google:hover {
    border-color: var(--home-cyan);
    box-shadow: 0 10px 24px rgba(0, 48, 72, .1);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6d818a;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(0, 60, 93, .34);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    color: #345b6f;
    font-size: 13px;
    font-weight: 700;
}

.auth-control {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(88, 184, 216, .65);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-control:focus-within {
    background: #fff;
    border-color: var(--home-cyan-dark);
    box-shadow: 0 0 0 3px rgba(88, 184, 216, .16);
}

.auth-field.is-invalid .auth-control {
    border-color: #d70015;
    box-shadow: 0 0 0 3px rgba(215, 0, 21, .1);
}

.auth-control > svg {
    width: 18px;
    height: 18px;
    color: #63aeca;
}

.auth-control input,
.auth-control select {
    width: 100%;
    min-width: 0;
    height: 46px;
    color: var(--home-navy);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.auth-control input::placeholder {
    color: #8ba3ad;
}

.auth-control select {
    appearance: none;
    cursor: pointer;
}

.auth-select-arrow {
    pointer-events: none;
}

.auth-password-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #62808f;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--home-navy);
    background: rgba(88, 184, 216, .13);
    outline: 0;
}

.auth-password-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-field__error {
    min-height: 0;
    color: #d70015;
    font-size: 12px;
    line-height: 1.2;
}

.auth-field__error:empty {
    display: none;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #365c6e;
    font-size: 12.5px;
    cursor: pointer;
}

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

.auth-check > span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 1px solid #78bed8;
    border-radius: 5px;
}

.auth-check > span svg {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.auth-check input:checked + span {
    color: #fff;
    background: var(--home-cyan-dark);
    border-color: var(--home-cyan-dark);
}

.auth-check input:focus-visible + span {
    outline: 3px solid rgba(88, 184, 216, .3);
    outline-offset: 2px;
}

.auth-check--terms {
    align-items: flex-start;
    line-height: 1.35;
}

.auth-check--terms em {
    font-style: normal;
}

.auth-check--terms a {
    color: var(--home-cyan-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-text-button {
    padding: 4px 0;
    color: var(--home-cyan-dark);
    background: transparent;
    border: 0;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.auth-text-button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-submit {
    justify-content: space-between;
    padding: 0 15px 0 18px;
    color: #fff;
    background: var(--home-cyan);
    border: 1px solid var(--home-cyan);
    box-shadow: 0 8px 20px rgba(42, 145, 181, .18);
    font-weight: 700;
}

.auth-submit:hover {
    background: #42acce;
    border-color: #42acce;
    box-shadow: 0 10px 25px rgba(42, 145, 181, .27);
    transform: translateY(-1px);
}

.auth-submit:focus-visible,
.auth-google:focus-visible,
.auth-text-button:focus-visible {
    outline: 3px solid rgba(88, 184, 216, .35);
    outline-offset: 3px;
}

.auth-submit svg {
    width: 19px;
    height: 19px;
}

.auth-status {
    min-height: 18px;
    margin: 0;
    color: #347087;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.auth-status.is-error {
    color: #d70015;
}

.auth-status.is-success {
    color: #248a3d;
}

.auth-page--compact {
    display: grid;
    min-height: 620px !important;
    place-items: center;
    padding-top: 105px;
}

.auth-form--standalone {
    display: flex;
}

.auth-text-link {
    color: var(--home-cyan-dark);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sign-page footer.footer {
    margin-top: 0;
    background: var(--home-cyan);
}

.sign-page footer .footer-bottom {
    background: var(--home-cyan-dark);
}

@media (max-width: 980px) {
    .auth-page {
        width: min(100% - 32px, 760px);
        min-height: 0 !important;
        padding: 44px 0 60px;
    }

    .auth-layout,
    .sign-page[data-auth-mode="register"] .auth-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "promo";
        gap: 38px;
    }

    .auth-form-panel {
        max-width: 480px;
    }

    .auth-promo {
        min-height: 310px;
        padding: 38px 34px;
        border-radius: 22px;
    }

    .auth-promo__eyebrow {
        font-size: 36px;
    }

    .auth-promo__copy h1 {
        font-size: 27px;
    }

    .auth-promo__copy p:last-child {
        font-size: 18px;
    }

    .auth-promo__tagline {
        bottom: 28px;
        left: 34px;
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        width: min(100% - 28px, 480px);
        padding: 30px 0 42px;
    }

    .auth-mode-switch {
        gap: 12px;
        margin-bottom: 27px;
    }

    .auth-mode-label {
        font-size: 15px;
    }

    .auth-switch {
        width: 62px;
        height: 30px;
    }

    .auth-switch span {
        width: 24px;
        height: 24px;
    }

    .sign-page[data-auth-mode="login"] .auth-switch span {
        transform: translateX(32px);
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form__heading img {
        width: 78px;
        height: 78px;
    }

    .auth-form__heading h1 {
        font-size: 27px;
    }

    .auth-control {
        min-height: 46px;
    }

    .auth-control input,
    .auth-control select {
        height: 44px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .auth-promo {
        min-height: 280px;
        padding: 32px 27px;
        border-radius: 24px;
    }

    .auth-promo__eyebrow {
        font-size: 31px;
    }

    .auth-promo__copy h1 {
        font-size: 24px;
    }

    .auth-promo__copy p:last-child {
        margin-top: 13px;
        font-size: 16px;
    }

    .auth-promo__tagline {
        right: 24px;
        bottom: 23px;
        left: 27px;
        font-size: 16px;
    }

    .auth-promo__mark {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-form,
    .auth-switch span,
    .auth-google,
    .auth-submit {
        animation: none !important;
        transition: none !important;
    }
}
