:root {
    --zs-auth-surface: var(--zs-surface, #fff);
    --zs-auth-text: var(--zs-text, #242424);
    --zs-auth-muted: var(--zs-muted, #767676);
    --zs-auth-line: var(--zs-line, rgba(0, 0, 0, 0.12));
    --zs-auth-green: var(--zs-green, #009b3a);
    --zs-auth-green-dark: var(--zs-green-dark, #08782f);
    --zs-auth-error: var(--zs-error, #d73328);
}

.zs-auth-providers {
    display: grid;
    gap: 10px;
    margin: 18px 30px 12px;
}

.zs-auth-provider {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: filter 120ms ease, transform 120ms ease;
}

.zs-auth-provider:hover {
    filter: brightness(0.96);
}

.zs-auth-provider:active {
    transform: translateY(1px);
}

.zs-auth-provider:focus-visible,
.zs-auth-submit:focus-visible,
.zs-auth-code-button:focus-visible,
.zs-auth-method-button:focus-visible,
.zs-auth-inline-action:focus-visible,
.zs-auth-field input:focus-visible,
.zs-auth-check input:focus-visible {
    outline: 3px solid rgba(0, 155, 58, 0.28);
    outline-offset: 2px;
}

.zs-auth-provider--vk {
    background: #07f;
    color: #fff;
}

.zs-auth-provider--yandex {
    border-color: rgba(0, 0, 0, 0.14);
    background: #111;
    color: #fff;
}

.zs-auth-provider__mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.zs-auth-provider--yandex .zs-auth-provider__mark {
    background: #fc3f1d;
    color: #fff;
    font-size: 18px;
}

.zs-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 30px;
    color: var(--zs-auth-muted);
    font-size: 13px;
    text-align: center;
}

.zs-auth-divider::before,
.zs-auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--zs-auth-line);
    content: "";
}

.zs-auth-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--zs-auth-text);
    font-size: 14px;
    font-weight: 600;
}

.zs-auth-page {
    min-height: 60vh;
    padding: 32px 16px 56px;
}

.zs-auth-card {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--zs-auth-line);
    border-radius: 24px;
    background: var(--zs-auth-surface);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
    color: var(--zs-auth-text);
}

.zs-auth-card--compact {
    width: min(100%, 520px);
    text-align: center;
}

.zs-auth-card__eyebrow {
    margin: 0 0 8px;
    color: var(--zs-auth-green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zs-auth-card__title {
    margin: 0;
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.15;
}

.zs-auth-card__lead {
    margin: 14px 0 0;
    color: var(--zs-auth-muted);
    line-height: 1.5;
}

.zs-auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.zs-auth-form__row {
    display: grid;
    gap: 18px;
}

.zs-auth-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.zs-auth-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--zs-auth-line);
    border-radius: 13px;
    background: #fff;
    color: var(--zs-auth-text);
    font: inherit;
}

.zs-auth-field input:focus {
    border-color: var(--zs-auth-green);
}

.zs-auth-field--error input {
    border-color: var(--zs-auth-error);
}

.zs-auth-field__error {
    margin: 6px 0 0;
    color: var(--zs-auth-error);
    font-size: 13px;
    line-height: 1.35;
}

.zs-auth-check-wrap--error {
    padding: 10px;
    border: 1px solid rgba(215, 51, 40, 0.32);
    border-radius: 13px;
}

.zs-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--zs-auth-text);
    line-height: 1.4;
    cursor: pointer;
}

.zs-auth-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 1px 0 0;
    accent-color: var(--zs-auth-green);
}

.zs-auth-submit {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--zs-auth-green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.zs-auth-submit:hover {
    background: var(--zs-auth-green-dark);
}

.zs-auth-submit--link {
    margin-top: 22px;
}

@media (min-width: 600px) {
    .zs-auth-card {
        padding: 32px;
    }

    .zs-auth-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .zs-auth-providers,
    .zs-auth-divider {
        margin-right: 16px;
        margin-left: 16px;
    }

    .zs-auth-card {
        padding: 20px;
        border-radius: 20px;
    }
}

/* Auth dialog: two-column Zombie Sushi experience. */
.zs-auth-overlay,
.zs-auth-overlay * {
    box-sizing: border-box;
}

.zs-auth-overlay {
    position: fixed;
    z-index: 9700;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    background: rgba(16, 20, 17, 0.68);
    overscroll-behavior: contain;
}

.zs-auth-overlay-enter,
.zs-auth-overlay-leave {
    transition: opacity 180ms ease;
}

.zs-auth-overlay-enter .zs-auth-dialog,
.zs-auth-overlay-leave .zs-auth-dialog {
    transform-origin: center;
    transition: opacity 160ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zs-auth-overlay-enter-start,
.zs-auth-overlay-leave-end {
    opacity: 0;
}

.zs-auth-overlay-enter-end,
.zs-auth-overlay-leave-start {
    opacity: 1;
}

.zs-auth-overlay-enter-start .zs-auth-dialog,
.zs-auth-overlay-leave-end .zs-auth-dialog {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
}

.zs-auth-overlay-enter-end .zs-auth-dialog,
.zs-auth-overlay-leave-start .zs-auth-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.zs-auth-dialog {
    position: relative;
    display: grid;
    width: min(1120px, calc(100vw - 48px));
    height: min(680px, calc(100dvh - 48px));
    min-height: 0;
    max-height: calc(100dvh - 48px);
    grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    color: var(--zs-auth-text);
    font-family: "Rubik", sans-serif;
}

.zs-auth-dialog--signin,
.zs-auth-dialog--signup {
    height: min(680px, calc(100dvh - 48px));
    min-height: 0;
}

.zs-auth-brand {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    padding: 50px 36px 0;
    background: #eff9f2;
    text-align: center;
}

.zs-auth-brand__logo {
    display: block;
    width: min(210px, 72%);
    height: auto;
    margin: 0 auto;
}

.zs-auth-brand__copy {
    position: relative;
    z-index: 1;
    margin-top: 26px;
}

.zs-auth-brand__title,
.zs-auth-brand__text {
    margin: 0;
    color: #161b18;
}

.zs-auth-brand__title {
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.zs-auth-brand__accent {
    display: block;
    width: 58px;
    height: 3px;
    margin: 18px auto;
    border-radius: 999px;
    background: var(--zs-auth-green);
}

.zs-auth-brand__text {
    font-size: 18px;
    line-height: 1.3;
}

.zs-auth-brand__mascot {
    position: absolute;
    right: 50%;
    bottom: -9px;
    width: min(360px, 102%);
    max-width: none;
    height: auto;
    transform: translateX(50%);
    object-fit: contain;
}

.zs-auth-view-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.zs-auth-view {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-width: 0;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 220ms;
}

.zs-auth-view.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 55ms, 55ms, 0s;
}

.zs-auth-panel {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 40px 54px 30px;
    background: #fff;
    scrollbar-gutter: stable;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zs-auth-panel.is-success {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.zs-auth-dialog--signin .zs-auth-panel {
    display: block;
    justify-content: flex-start;
}

.zs-auth-success {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 36px;
    background: #fff;
    text-align: center;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zs-auth-success__content {
    width: min(100%, 390px);
    color: var(--zs-auth-text);
    animation: zs-auth-success-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.zs-auth-success__content::before {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eaf7ee;
    color: var(--zs-auth-green-dark);
    content: "✓";
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 155, 58, 0.16);
}

.zs-auth-success__title {
    margin: 0;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.zs-auth-success__text {
    margin: 12px 0 0;
    color: var(--zs-auth-muted);
    font-size: 15px;
    line-height: 1.5;
}

@keyframes zs-auth-success-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.zs-auth-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.zs-auth-overlay .zs-auth-close {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    color: #2e302f;
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 300;
    line-height: 38px;
    text-shadow: none;
}

.zs-auth-overlay .zs-auth-close:hover,
.zs-auth-overlay .zs-auth-close:focus-visible {
    border-color: rgba(215, 51, 40, 0.24);
    background: #fff;
    color: var(--zs-auth-error);
    transform: none;
}

.zs-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 30px 22px 0;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #f8faf8;
}

.zs-auth-tab {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #252725;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease,
        color 150ms ease, box-shadow 180ms ease;
}

.zs-auth-tab:hover {
    color: var(--zs-auth-green-dark);
}

.zs-auth-tab.is-active {
    border-color: var(--zs-auth-green);
    background: #fff;
    color: #151715;
    box-shadow: 0 4px 12px rgba(0, 155, 58, 0.10);
}

.zs-auth-method-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 30px 18px 0;
    padding: 4px;
    border: 1px solid #dce2dd;
    border-radius: 12px;
    background: #f5f8f5;
}

.zs-auth-method-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #626863;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease,
        color 140ms ease, box-shadow 140ms ease;
}

.zs-auth-method-button .fa-mobile {
    font-size: 20px;
    line-height: 1;
}

.zs-auth-method-button:hover {
    color: var(--zs-auth-green-dark);
}

.zs-auth-method-button.is-active {
    border-color: rgba(0, 155, 58, 0.38);
    background: #fff;
    color: #151715;
    box-shadow: 0 4px 12px rgba(0, 155, 58, 0.10);
}

.zs-auth-collapse {
    display: grid;
    min-width: 0;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 150ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 240ms;
}

.zs-auth-collapse.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.zs-auth-collapse__inner {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.zs-auth-method-stage,
.zs-auth-submit-stage {
    display: grid;
    min-width: 0;
    align-items: start;
}

.zs-auth-method-pane,
.zs-auth-submit-choice {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 150ms ease, transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 210ms;
}

.zs-auth-method-pane {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 150ms ease, transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 240ms;
}

.zs-auth-method-pane__inner {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.zs-auth-method-pane.is-active,
.zs-auth-submit-choice.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 45ms, 45ms, 0s;
}

.zs-auth-method-pane.is-active {
    grid-template-rows: 1fr;
    transition-delay: 0s, 45ms, 45ms, 0s;
}

.zs-auth-submit-stage {
    min-height: 52px;
    margin: 0 30px 0 0;
}

.zs-auth-submit-stage .zs-auth-submit {
    width: 100%;
    margin-right: 0;
}

.zs-auth-panel .zs-auth-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin: 0 30px 18px 0;
}

.zs-auth-panel .zs-auth-provider {
    min-width: 0;
    min-height: 52px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.zs-auth-panel .zs-auth-provider:hover,
.zs-auth-panel .zs-auth-provider:focus-visible {
    color: #fff;
    filter: brightness(0.96);
    opacity: 1;
}

.zs-auth-panel .zs-auth-provider__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
}

.zs-auth-provider__mark img {
    display: block;
    width: 24px;
    height: 24px;
}

.zs-auth-provider--yandex .zs-auth-provider__mark {
    background: #fc3f1d;
}

.zs-auth-provider--yandex .zs-auth-provider__mark > span {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.zs-auth-panel .zs-auth-divider {
    margin: 0 30px 18px 0;
    font-size: 14px;
}

.zs-auth-alert {
    margin: 0 30px 14px 0;
    padding: 10px 13px;
    border: 1px solid rgba(215, 51, 40, 0.24);
    border-radius: 10px;
    background: #fff4f2;
    color: #a7221a;
    font-size: 13px;
    line-height: 1.35;
}

.zs-auth-alert--animated,
.zs-auth-panel .zs-auth-alert.error-message {
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        margin-bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        padding-top 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        padding-bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-width 180ms ease, opacity 150ms ease,
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zs-auth-alert--animated.is-visible,
.zs-auth-alert--animated:not(:empty),
.zs-auth-panel .zs-auth-alert.error-message.is-visible,
.zs-auth-panel .zs-auth-alert.error-message:not(:empty) {
    max-height: 120px;
    margin-bottom: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top-width: 1px;
    border-bottom-width: 1px;
    opacity: 1;
    transform: translateY(0);
}

.zs-auth-fields {
    display: grid;
    gap: 14px;
    margin-right: 30px;
}

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

.zs-auth-panel .zs-auth-field label {
    display: block;
    margin: 0 0 6px;
    color: #262926;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.zs-auth-panel .zs-auth-field input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #d8ddd9;
    border-radius: 9px;
    background: #fff;
    color: #171917;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.zs-auth-panel .zs-auth-field input::placeholder {
    color: #969b97;
    opacity: 1;
}

.zs-auth-panel .zs-auth-field input:hover {
    border-color: #bcc5be;
}

.zs-auth-panel .zs-auth-field input:focus {
    outline: none;
    border-color: var(--zs-auth-green);
    box-shadow: 0 0 0 3px rgba(0, 155, 58, 0.14);
}

.zs-auth-panel .zs-auth-field input[readonly] {
    border-color: #dfe4e0;
    background: #f5f7f5;
    color: #626863;
    cursor: default;
}

.zs-auth-panel .zs-auth-field input.input-error,
.zs-auth-panel .zs-auth-field--error input {
    border-color: var(--zs-auth-error);
    background: #fff;
}

.zs-auth-password {
    position: relative;
}

.zs-auth-password input {
    padding-right: 46px !important;
}

.zs-auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    color: #747b76;
    transform: translateY(-50%);
}

.zs-auth-password__toggle:hover,
.zs-auth-password__toggle:focus-visible {
    background: #eef7f0;
    color: var(--zs-auth-green-dark);
}

.zs-auth-password__toggle .fa {
    color: inherit;
    font-size: 16px;
}

.zs-auth-panel .zs-auth-field__error {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    color: var(--zs-auth-error);
    font-size: 12px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        margin-top 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 140ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zs-auth-panel .zs-auth-field__error:not(:empty) {
    max-height: 44px;
    margin-top: 5px;
    opacity: 1;
    transform: translateY(0);
}

.zs-auth-phone-fields,
.zs-auth-phone-verification,
.zs-auth-phone-code {
    display: grid;
    gap: 12px;
}

.zs-auth-phone-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.zs-auth-phone-label label {
    margin-bottom: 6px !important;
}

.zs-auth-inline-action {
    padding: 2px 0;
    color: var(--zs-auth-green-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.zs-auth-inline-action:hover {
    color: var(--zs-auth-green);
}

.zs-auth-inline-action:disabled {
    color: #929893;
    cursor: not-allowed;
    text-decoration: none;
}

.zs-auth-phone-code input {
    letter-spacing: 0.22em;
    text-align: center !important;
    font-size: 18px !important;
    font-variant-numeric: tabular-nums;
}

.zs-auth-phone-meta {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zs-auth-phone-notice {
    margin: 0;
    color: #667068;
    font-size: 12px;
    line-height: 1.35;
}

.zs-auth-phone-meta [data-testid$="-resend-timer"] {
    display: inline-block;
    min-width: 4.8ch;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.zs-auth-code-button {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(0, 155, 58, 0.42);
    border-radius: 9px;
    background: #f3fbf5;
    color: var(--zs-auth-green-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease,
        color 140ms ease;
}

.zs-auth-code-button:hover,
.zs-auth-code-button:focus-visible {
    border-color: var(--zs-auth-green);
    background: #eaf7ee;
    color: var(--zs-auth-green-dark);
}

.zs-auth-code-button:disabled {
    border-color: #dfe4e0;
    background: #f5f7f5;
    color: #929893;
    cursor: wait;
}

.zs-auth-forgot {
    margin: 8px 30px 18px 0;
    text-align: right;
}

.zs-auth-forgot button,
.zs-auth-switch button {
    padding: 0;
    color: var(--zs-auth-green-dark);
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zs-auth-forgot button {
    font-size: 13px;
}

.zs-auth-forgot button:hover,
.zs-auth-switch button:hover {
    color: var(--zs-auth-green);
}

.zs-auth-details {
    border: 1px dashed rgba(0, 155, 58, 0.45);
    border-radius: 10px;
    background: #fbfefc;
}

.zs-auth-details__header {
    display: grid;
    min-height: 46px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    color: var(--zs-auth-green-dark);
    font-size: 14px;
    font-weight: 700;
}

.zs-auth-details__header .fa {
    color: inherit;
}

.zs-auth-details__hint {
    color: #687069;
    font-size: 12px;
    font-weight: 450;
}

.zs-auth-details__hint--required,
.zs-auth-required-mark {
    color: var(--zs-auth-error);
    font-weight: 700;
}

.zs-auth-details__content {
    display: grid;
    gap: 14px;
    padding: 2px 14px 14px;
}

.zs-auth-consents {
    display: grid;
    gap: 8px;
    margin: 14px 30px 16px 0;
}

.zs-auth-panel .zs-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #5f6661;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.35;
    cursor: pointer;
}

.zs-auth-panel .zs-auth-check input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--zs-auth-green);
    transform: none;
}

.zs-auth-panel .zs-auth-check--error {
    color: var(--zs-auth-error);
}

.zs-auth-panel .zs-auth-submit {
    position: relative;
    width: 100%;
    min-height: 52px;
    gap: 9px;
    margin: 0 30px 0 0;
    border-radius: 10px;
    background: var(--zs-auth-green);
    color: #fff;
    font-size: 17px;
    font-weight: 760;
    box-shadow: 0 12px 26px rgba(0, 155, 58, 0.22);
    transition: background-color 150ms ease, box-shadow 180ms ease,
        opacity 150ms ease;
}

.zs-auth-panel .zs-auth-submit:hover,
.zs-auth-panel .zs-auth-submit:focus-visible {
    background: var(--zs-auth-green-dark);
    color: #fff;
    transform: none;
}

.zs-auth-panel .zs-auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.zs-auth-panel .zs-auth-submit .spinner,
.zs-auth-panel .zs-auth-code-button .spinner {
    position: absolute;
    top: 50%;
    right: 16px;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 130ms ease, visibility 0s linear 130ms;
}

.zs-auth-panel .zs-auth-submit .spinner.is-visible,
.zs-auth-panel .zs-auth-code-button .spinner.is-visible,
.zs-auth-panel .zs-auth-submit.processing .spinner,
.zs-auth-panel .zs-auth-code-button.processing .spinner {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.zs-auth-switch {
    margin: 17px 30px 0 0;
    color: #747a76;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.zs-auth-switch button {
    font-size: inherit;
}

.zs-auth-overlay button:focus-visible,
.zs-auth-overlay a:focus-visible,
.zs-auth-details__header:focus-visible {
    outline: 3px solid rgba(0, 155, 58, 0.24);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .zs-auth-overlay {
        align-items: flex-start;
        padding: 14px;
    }

    .zs-auth-dialog,
    .zs-auth-dialog--signin,
    .zs-auth-dialog--signup {
        width: min(100%, 680px);
        height: calc(100dvh - 28px);
        min-height: 0;
        max-height: calc(100dvh - 28px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        border-radius: 20px;
    }

    .zs-auth-view-stage {
        height: 100%;
    }

    .zs-auth-brand {
        min-height: 106px;
        padding: 18px 132px 14px 24px;
        text-align: left;
    }

    .zs-auth-brand__logo {
        width: 126px;
        margin: 0;
    }

    .zs-auth-brand__copy {
        margin-top: 6px;
    }

    .zs-auth-brand__title {
        font-size: 17px;
        letter-spacing: -0.02em;
    }

    .zs-auth-brand__accent,
    .zs-auth-brand__text {
        display: none;
    }

    .zs-auth-brand__mascot {
        right: 5px;
        bottom: -55px;
        width: 150px;
        transform: none;
    }

    .zs-auth-panel {
        padding: 24px 22px 22px;
    }

    .zs-auth-tabs,
    .zs-auth-method-switch,
    .zs-auth-panel .zs-auth-providers,
    .zs-auth-panel .zs-auth-divider,
    .zs-auth-alert,
    .zs-auth-fields,
    .zs-auth-forgot,
    .zs-auth-consents,
    .zs-auth-panel .zs-auth-submit,
    .zs-auth-submit-stage,
    .zs-auth-switch {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 560px) {
    .zs-auth-overlay {
        padding: 8px;
    }

    .zs-auth-dialog,
    .zs-auth-dialog--signin,
    .zs-auth-dialog--signup {
        width: 100%;
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    .zs-auth-brand {
        min-height: 88px;
        padding: 14px 105px 10px 20px;
    }

    .zs-auth-brand__logo {
        width: 104px;
    }

    .zs-auth-brand__copy {
        display: none;
    }

    .zs-auth-brand__mascot {
        right: -4px;
        bottom: -58px;
        width: 128px;
    }

    .zs-auth-overlay .zs-auth-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 26px;
        line-height: 34px;
    }

    .zs-auth-panel {
        padding: 20px 16px 18px;
    }

    .zs-auth-tabs {
        margin-bottom: 16px;
    }

    .zs-auth-panel .zs-auth-providers {
        grid-template-columns: 1fr;
        margin-bottom: 14px;
    }

    .zs-auth-panel .zs-auth-provider {
        min-height: 48px;
        font-size: 14px;
    }

    .zs-auth-panel .zs-auth-divider {
        margin-bottom: 14px;
    }

    .zs-auth-method-switch {
        margin-bottom: 14px;
    }

    .zs-auth-field-row {
        grid-template-columns: 1fr;
    }

    .zs-auth-phone-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .zs-auth-details__header {
        grid-template-columns: 1fr auto;
    }

    .zs-auth-details__hint {
        display: none;
    }

    .zs-auth-panel .zs-auth-submit {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zs-auth-overlay,
    .zs-auth-overlay::before,
    .zs-auth-overlay::after,
    .zs-auth-overlay *,
    .zs-auth-overlay *::before,
    .zs-auth-overlay *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .zs-auth-overlay-enter-start .zs-auth-dialog,
    .zs-auth-overlay-leave-end .zs-auth-dialog,
    .zs-auth-view,
    .zs-auth-collapse,
    .zs-auth-method-pane,
    .zs-auth-submit-choice,
    .zs-auth-panel.is-success,
    .zs-auth-success {
        transform: none !important;
    }

    .zs-auth-panel .spinner {
        animation: none !important;
    }
}

/* Logout confirmation: compact continuation of the auth experience. */
.zs-auth-overlay--logout {
    align-items: center;
}

.zs-auth-card--logout {
    position: relative;
    display: flex;
    width: min(100%, 560px);
    flex-direction: column;
    align-items: center;
    padding: 34px 42px 38px;
    border-color: rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    font-family: "Rubik", sans-serif;
}

.zs-auth-logout__visual {
    display: flex;
    width: 178px;
    height: 146px;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin: -9px auto 20px;
    border-radius: 28px;
    background: #eff9f2;
}

.zs-auth-logout__visual img {
    display: block;
    width: 162px;
    height: auto;
    max-height: 138px;
    object-fit: contain;
    object-position: center bottom;
}

.zs-auth-card--logout .zs-auth-card__title {
    color: #161b18;
    letter-spacing: -0.035em;
}

.zs-auth-card--logout .zs-auth-card__lead {
    max-width: 420px;
    margin-top: 12px;
    color: #687069;
    font-size: 15px;
}

.zs-auth-logout__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.zs-auth-logout__actions .zs-auth-submit {
    width: 100%;
    min-height: 52px;
    gap: 9px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 12px 26px rgba(0, 155, 58, 0.18);
    transition: background-color 140ms ease, border-color 140ms ease,
        color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.zs-auth-logout__actions .zs-auth-submit:hover,
.zs-auth-logout__actions .zs-auth-submit:focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

.zs-auth-logout__actions .zs-auth-submit--danger {
    border: 1px solid rgba(215, 51, 40, 0.38);
    background: #fff;
    box-shadow: none;
    color: #b42a21;
}

.zs-auth-logout__actions .zs-auth-submit--danger:hover,
.zs-auth-logout__actions .zs-auth-submit--danger:focus-visible {
    border-color: var(--zs-auth-error);
    background: #fff4f2;
    color: #a7221a;
    box-shadow: 0 10px 22px rgba(215, 51, 40, 0.10);
}

@media (max-width: 560px) {
    .zs-auth-card--logout {
        width: 100%;
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .zs-auth-logout__visual {
        width: 148px;
        height: 116px;
        margin-bottom: 16px;
        border-radius: 22px;
    }

    .zs-auth-logout__visual img {
        width: 132px;
        max-height: 110px;
    }

    .zs-auth-card--logout .zs-auth-card__lead {
        font-size: 14px;
    }

    .zs-auth-logout__actions {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }
}
