body.auth-modal-open {
            overflow: hidden}

.auth-modal {
            position: fixed;
            inset: 0;
            z-index: 11000;
            display: none;
            pointer-events: none}

.auth-modal.is-open {
            display: block;
            pointer-events: auto}

.auth-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 16, 20, .52);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px)}

.auth-modal__viewport {
            position: relative;
            z-index: 1;
            min-height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            box-sizing: border-box}

.auth-modal__dialog {
            position: relative;
            width: min(440px, 100%);
            max-height: calc(100vh - 48px);
            overflow: auto;
            padding: 24px;
            box-sizing: border-box;
            background: var(--color-surface, #1e2024);
            border: 1px solid color-mix(in srgb, var(--color-border, #33363d) 72%, transparent);
            border-radius: 16px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
            animation: authModalIn .24s ease-out}

.auth-modal__dialog--wide {
            width: min(920px, 100%);
            padding: 0;
            overflow: hidden;
            border-radius: 24px}

.auth-modal__split {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            min-height: min(560px, calc(100vh - 48px))}

.auth-modal__form-col {
            padding: 32px 28px 28px;
            overflow-y: auto;
            max-height: calc(100vh - 48px);
            box-sizing: border-box}

.auth-modal__dialog--wide .auth-modal__close {
            top: 16px;
            right: 16px;
            z-index: 3;
            width: 40px;
            height: 40px;
            border-radius: 999px;
            background: #e4574e;
            color: #fff}

.auth-modal__dialog--wide .auth-modal__close:hover {
            background: #f06860;
            color: #fff}

.auth-modal__visual {
            position: relative;
            min-height: 280px;
            background: var(--color-bg-deep, #1a1c21)}

.auth-modal__visual-img {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 100%;
            object-fit: cover;
            object-position: center}

.auth-modal__visual-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 10px;
            padding: 28px;
            background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--color-bg-deep, #1a1c21) 90%, transparent) 100%);
            pointer-events: none}

.auth-modal__visual-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            padding: 6px 12px;
            width: fit-content;
            border-radius: 999px;
            background: rgba(255, 255, 255, .1);
            border: 1px solid rgba(255, 255, 255, .14);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #e5e5e5}

.auth-modal__visual-title {
            margin: 0;
            font-size: clamp(22px, 2.4vw, 30px);
            font-weight: 800;
            line-height: 1.15;
            color: #fff}

.auth-modal__visual-text {
            margin: 0;
            max-width: 28ch;
            font-size: 13px;
            line-height: 1.5;
            color: rgba(229, 229, 229, .82)}

@keyframes authModalIn {
            from {
                opacity: 0;
                transform: translateY(10px) scale(.98)}

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

.auth-modal__close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 10px;
            background: hsla(0, 0%, 100%, .04);
            color: #848a9a;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background .15s ease, color .15s ease}

.auth-modal__close:hover {
            background: hsla(0, 0%, 100%, .08);
            color: #fff}

.auth-modal__head {
            margin-bottom: 20px;
            padding-right: 36px}

.auth-modal__eyebrow {
            margin: 0 0 8px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: #88cca6}

.auth-modal__title {
            margin: 0;
            font-size: 24px;
            font-weight: 800;
            line-height: 1.2;
            color: #fff}

.auth-modal__subtitle {
            margin: 8px 0 0;
            font-size: 13px;
            line-height: 1.5;
            color: #848a9a}

.auth-modal__form {
            display: flex;
            flex-direction: column;
            gap: 12px}

.auth-modal__grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px}

.auth-field {
            display: flex;
            align-items: center;
            gap: 12px;
            height: 50px;
            padding: 0 16px;
            border-radius: 10px;
            border: 1px solid rgba(127, 165, 209, .22);
            background: hsla(0, 0%, 100%, .035);
            box-shadow: 0 0 0 2px transparent, 0 0 0 4px transparent;
            transition: box-shadow .18s ease;
            cursor: text;
            overflow: visible}

.auth-field:focus-within {
            border-color: rgba(127, 165, 209, .22);
            box-shadow: 0 0 0 2px #1e2024, 0 0 0 4px rgba(136, 204, 166, .42)}

.auth-field__icon {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 22px;
            width: 22px;
            height: 22px;
            color: #848a9a;
            transition: color .18s ease;
            pointer-events: none;
            overflow: visible}

.auth-field__icon svg {
            display: block;
            width: 20px;
            height: 20px;
            overflow: visible;
            flex-shrink: 0}

.auth-field:focus-within .auth-field__icon {
            color: #88cca6}

.auth-field input {
            flex: 1 1 auto;
            min-width: 0;
            width: 100%;
            align-self: stretch;
            height: auto;
            border: none;
            background: transparent;
            color: #e5e5e5;
            font-size: 14px;
            line-height: 48px;
            padding: 0;
            margin: 0;
            outline: none;
            -webkit-appearance: none;
            appearance: none}

.auth-field input::placeholder {
            color: #51555f;
            line-height: 48px;
            opacity: 1}

.auth-modal__row {
            display: flex;
            justify-content: flex-end;
            margin-top: -4px}

.auth-modal__options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 2px 0 0}

.auth-modal__remember {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            font-size: 12px;
            color: #848a9a;
            cursor: pointer;
            user-select: none}

.auth-modal__remember input {
            width: 16px;
            height: 16px;
            margin: 0;
            accent-color: var(--color-accent, #2b6cf0)}

.auth-field__toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border: none;
            background: none;
            padding: 0;
            color: #848a9a;
            cursor: pointer}

.auth-field__toggle:hover {
            color: #e5e5e5}

.auth-modal__link {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-accent, #2b6cf0);
            text-decoration: none}

.auth-modal__link:hover {
            color: var(--color-accent-hover, #1f5ad6);
            text-decoration: underline}

.auth-modal__hint {
            margin: 0;
            font-size: 11px;
            color: #848a9a}

.auth-modal__submit {
            width: 100%;
            margin-top: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 50px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700}

.auth-modal__dialog--wide .auth-modal__submit.home-head__btn--primary {
            background: var(--color-accent, #2b6cf0);
            color: var(--color-text-on-accent, #16171b)}

.auth-modal__dialog--wide .auth-modal__submit.home-head__btn--primary:hover {
            background: var(--color-accent-hover, #1f5ad6);
            color: var(--color-text-on-accent, #16171b)}

.auth-modal__dialog--wide .auth-modal__head {
            margin-bottom: 18px;
            padding-right: 44px}

.auth-modal__dialog--wide .auth-modal__title {
            font-size: 28px}

.auth-modal__dialog--wide .auth-modal__switch-btn {
            color: var(--color-accent, #2b6cf0)}

.auth-modal__dialog--wide .auth-modal__switch-btn:hover {
            color: var(--color-accent-hover, #1f5ad6)}

.auth-modal__foot {
            margin: 12px 0 0;
            text-align: center}

.auth-turnstile {
            display: flex;
            justify-content: center;
            width: 100%;
            margin: 8px 0 4px}

.auth-modal__switch {
            margin: 16px 0 0;
            text-align: center;
            font-size: 13px;
            color: #848a9a}

.auth-modal__switch-btn {
            border: none;
            background: none;
            padding: 0;
            margin-left: 4px;
            font: inherit;
            font-weight: 700;
            color: #88cca6;
            cursor: pointer}

.auth-modal__switch-btn:hover {
            color: #9acd90;
            text-decoration: underline}

.auth-google-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 16px 0;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: .06em;
            color: #848a9a;
            text-transform: lowercase}

.auth-google-divider--upper {
            margin: 18px 0 14px;
            text-transform: uppercase}

.auth-google-divider::before,
.auth-google-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.08)}

.auth-google-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 12px 16px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: #e8eaef;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            box-sizing: border-box;
            transition: background 0.15s ease, border-color 0.15s ease}

.auth-google-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            color: #fff}

@media screen and (max-width:860px) {
            .auth-modal__split {
                grid-template-columns: 1fr}

.auth-modal__visual {
                display: none}

.auth-modal__dialog--wide {
                width: min(480px, 100%)}

.auth-modal__form-col {
                max-height: calc(100vh - 48px)
            }

}

@media screen and (max-width:520px) {
            .auth-modal__grid {
                grid-template-columns: 1fr}

.auth-modal__dialog {
                padding: 20px 16px
            }

.auth-modal__dialog--wide {
                padding: 0}

.auth-modal__form-col {
                padding: 24px 18px 20px
            }

}

.auth-page {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 40px 16px 72px;
            box-sizing: border-box}

.auth-page .auth-modal__dialog {
            position: relative;
            max-height: none;
            overflow: visible;
            animation: none}