        :root {
            color-scheme: light;
            --auth-grid-unit: 8px;
            --page-bg: #fafafa;
            --card-bg: #ffffff;
            --panel-bg: #fafafa;
            --border: #eeeeee;
            --field-border: #d3d3d3;
            --text: #000000;
            --muted: rgba(0, 0, 0, 0.6);
            --muted-soft: rgba(0, 0, 0, 0.3);
            --accent: #f03226;
            --accent-dark: #d0291e;
            --accent-rgb: 240, 50, 38;
            --accent-hover: #f2281d;
            --error-bg: #fff3f1;
            --error-border: #f2c2bb;
            --shadow: 0 13px 41px rgba(102, 9, 9, 0.05);
            --footer-link: rgba(0, 0, 0, 0.3);
            --footer-underline: rgba(0, 0, 0, 0.15);
            --close-color: #757575;
            --phone-frame-bg: linear-gradient(180deg, #ffffff, #f4f1ec);
            --phone-frame-border: #111111;
            --phone-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
            --promo-line: #ece8e2;
            --promo-pill: #f3efe9;
            --promo-preview: linear-gradient(135deg, #fff4da, #f6d39d);
            --promo-card-border: rgba(17, 17, 17, 0.04);
            --promo-card-shadow: 0 6px 16px rgba(32, 32, 32, 0.05);
            --auth-control-height: 48px;
            --auth-control-radius: 8px;
            --auth-control-padding-y: 12px;
            --auth-control-padding-x: 12px;
            --auth-control-font-size: 16px;
            --auth-control-line-height: 20px;
            --auth-submit-height: 50px;
            --auth-submit-radius: 8px;
            --auth-submit-font-size: 16px;
            --auth-secondary-height: 48px;
            --auth-secondary-radius: 8px;
            --auth-secondary-font-size: 16px;
            --auth-touch-target-min-height: 44px;
            --auth-touch-target-gap: 12px;
            --auth-panel-padding: 28px;
            --auth-intro-gap: 16px;
            --auth-form-margin-top: 20px;
            --auth-form-gap: 16px;
            --auth-feedback-margin-top: 24px;
            --auth-feedback-gap: 12px;
            --auth-feedback-form-gap: 20px;
            --auth-compact-panel-padding: 42px 40px 40px;
            --auth-compact-intro-gap: 14px;
            --auth-compact-subtitle-margin-top: 18px;
            --auth-compact-phone-margin-top: 2px;
            --auth-compact-form-margin-top: 24px;
            --auth-compact-form-gap: 18px;
            --auth-compact-feedback-form-gap: 20px;
            --auth-compact-code-form-margin-top: 12px;
            --auth-compact-code-form-gap: 14px;
            --auth-compact-code-gap: 10px;
            --auth-compact-meta-gap: 10px;
            --auth-compact-code-button-gap: 4px;
            --auth-compact-panel-section-gap: calc(var(--auth-grid-unit) * 3);
            --auth-verification-feedback-slot-height: calc(var(--auth-grid-unit) * 6);
            --auth-resend-slot-height: calc(var(--auth-grid-unit) * 6);
        }

        html[data-theme="dark"] {
            color-scheme: dark;
            --page-bg: #1d1d1d;
            --card-bg: #252525;
            --panel-bg: #2f2f2f;
            --border: rgba(255, 255, 255, 0.04);
            --field-border: #eeeeee;
            --text: #ffffff;
            --muted: rgba(255, 255, 255, 0.6);
            --muted-soft: rgba(255, 255, 255, 0.3);
            --accent: #d85b4d;
            --accent-dark: #f08b80;
            --accent-rgb: 216, 91, 77;
            --accent-hover: #c95143;
            --error-bg: rgba(216, 91, 77, 0.12);
            --error-border: rgba(216, 91, 77, 0.34);
            --shadow: none;
            --footer-link: rgba(255, 255, 255, 0.3);
            --footer-underline: rgba(255, 255, 255, 0.14);
            --close-color: rgba(255, 255, 255, 0.18);
            --phone-frame-bg: linear-gradient(180deg, #ffffff, #f5f2ec);
            --phone-frame-border: #171717;
            --phone-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
            --promo-line: #ece8e2;
            --promo-pill: #f3efe9;
            --promo-preview: linear-gradient(135deg, #fff4da, #f6d39d);
            --promo-card-border: rgba(17, 17, 17, 0.04);
            --promo-card-shadow: 0 6px 16px rgba(32, 32, 32, 0.05);
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--page-bg);
            color: var(--text);
        }

        .auth-shell {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding:
                max(24px, env(safe-area-inset-top))
                max(24px, env(safe-area-inset-right))
                max(24px, env(safe-area-inset-bottom))
                max(24px, env(safe-area-inset-left));
        }

        .auth-shell-inner {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 26px;
        }

        .auth-frame {
            width: 100%;
            max-width: 828px;
            display: grid;
            grid-template-columns: 392px 436px;
            background: var(--card-bg);
            border-radius: 10px;
            overflow: visible;
            box-shadow: var(--shadow);
        }

        .auth-promo {
            display: flex;
            align-self: stretch;
            padding: 16px 0 16px 16px;
        }

        .auth-promo-surface {
            position: relative;
            min-height: 402px;
            flex: 1 1 auto;
            width: 100%;
            max-width: 380px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            border-radius: 8px;
            background: var(--panel-bg);
            padding: 12px 12px 0;
            overflow: hidden;
        }

        .auth-logo {
            position: relative;
            display: inline-block;
            width: 126px;
            height: 36px;
            text-decoration: none;
        }

        .auth-promo-surface > .auth-logo {
            margin-top: 8px;
        }

        .auth-logo-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .auth-logo-image--dark {
            display: none;
        }

        html[data-theme="dark"] .auth-logo-image--light {
            display: none;
        }

        html[data-theme="dark"] .auth-logo-image--dark {
            display: block;
        }

        .auth-promo-copy {
            max-width: 245px;
            margin-top: 12px;
            text-align: center;
        }

        .auth-promo-copy p {
            margin: 0;
            color: rgba(0, 0, 0, 0.6);
            font-size: 14px;
            line-height: 1.43;
            letter-spacing: 0.17px;
        }

        .auth-store-strong {
            color: var(--text);
            font-weight: 700;
        }

        .auth-store-inline-link {
            color: var(--text);
            text-decoration-line: underline;
            text-decoration-color: rgba(var(--accent-rgb), 0.38);
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            transition: color 0.18s ease, text-decoration-color 0.18s ease;
        }

        .auth-store-inline-link:hover,
        .auth-store-inline-link:focus-visible {
            color: var(--accent);
            text-decoration-color: currentColor;
            outline: none;
        }

        .auth-phones {
            position: absolute;
            left: 50%;
            bottom: -80px;
            width: 320px;
            height: 372px;
            transform: translateX(-50%) scale(1.12);
            transform-origin: center bottom;
        }

        .auth-phone-frame {
            position: absolute;
            top: 0;
            width: 182px;
            height: 369px;
            overflow: hidden;
            border-radius: 38px;
        }

        .auth-phone-frame--front {
            left: 22px;
            top: 2px;
            z-index: 2;
        }

        .auth-phone-frame--back {
            right: 18px;
            top: 0;
            z-index: 1;
        }

        .auth-phone-frame img {
            position: absolute;
            max-width: none;
        }

        .auth-phone-frame--front img {
            left: -162%;
            top: -28%;
            width: 424%;
            height: 148%;
        }

        .auth-phone-frame--back img {
            left: -161%;
            top: -28%;
            width: 424%;
            height: 148%;
        }


        .auth-form-panel {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: var(--auth-panel-padding);
            min-height: 402px;
        }

        .auth-back {
            display: none;
        }

        .auth-close {
            position: absolute;
            top: 28px;
            right: 26px;
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--close-color);
            text-decoration: none;
            border-radius: 999px;
            font-size: 16px;
            line-height: 1;
        }

        .auth-close::before,
        .auth-close::after {
            content: "";
            position: absolute;
            width: 16px;
            height: 2px;
            background: currentColor;
            border-radius: 999px;
        }

        .auth-close::before {
            transform: rotate(45deg);
        }

        .auth-close::after {
            transform: rotate(-45deg);
        }

        .auth-theme-switcher,
        .auth-language-switcher {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
        }

        .auth-theme-switcher--mobile {
            display: none;
        }

        .auth-preference-select {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 138px;
            margin: 0;
        }

        .auth-preference-select-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            width: 16px;
            height: 16px;
            pointer-events: none;
            transform: translateY(-50%);
            opacity: 0.72;
        }

        html[data-theme="dark"] .auth-preference-select-icon {
            filter: brightness(0) invert(1);
            opacity: 0.72;
        }

        .auth-preference-select-control {
            appearance: none;
            width: 100%;
            min-height: var(--auth-touch-target-min-height);
            padding: 9px 40px 9px 36px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.04);
            color: var(--text);
            font: inherit;
            font-size: 13px;
            line-height: 18px;
            letter-spacing: 0.17px;
            cursor: pointer;
            outline: none;
            transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
        }

        .auth-preference-select-control:focus {
            border-color: rgba(var(--accent-rgb), 0.65);
            box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
        }

        .auth-preference-select-caret {
            position: absolute;
            right: 14px;
            top: 50%;
            width: 10px;
            height: 6px;
            pointer-events: none;
            transform: translateY(-50%);
        }

        .auth-preference-select-caret::before,
        .auth-preference-select-caret::after {
            content: "";
            position: absolute;
            top: 2px;
            width: 6px;
            height: 2px;
            background: var(--muted);
            border-radius: 999px;
        }

        .auth-preference-select-caret::before {
            left: 0;
            transform: rotate(45deg);
        }

        .auth-preference-select-caret::after {
            right: 0;
            transform: rotate(-45deg);
        }

        .auth-toolbar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            width: 100%;
            max-width: 828px;
        }

        .auth-language-switcher--mobile {
            display: none;
        }

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

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

        .auth-intro {
            display: grid;
            justify-items: center;
            gap: var(--auth-intro-gap);
        }

        .auth-content {
            width: 100%;
        }

        .auth-title {
            margin: 0;
            text-align: center;
            font-size: 26px;
            line-height: 1.235;
            font-weight: 400;
            letter-spacing: 0.25px;
        }

        .auth-subtitle {
            display: none;
        }

        .auth-error {
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--error-border);
            background: var(--error-bg);
            color: var(--accent-dark);
            font-size: 14px;
            line-height: 20px;
        }

        .auth-notice {
            padding: 10px 14px;
            border-radius: 12px;
            text-align: center;
            font-size: 14px;
            line-height: 20px;
        }

        .auth-feedback {
            display: grid;
            gap: var(--auth-feedback-gap);
            margin-top: var(--auth-feedback-margin-top);
            width: 100%;
            justify-self: stretch;
        }

        .auth-feedback[hidden] {
            display: none;
        }

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

        .auth-feedback .auth-error,
        .auth-feedback .auth-notice {
            margin: 0;
            width: 100%;
            justify-self: stretch;
            display: block;
        }

        .auth-feedback + .auth-form {
            margin-top: var(--auth-feedback-form-gap);
        }

        .auth-notice--success {
            background: rgba(58, 163, 87, 0.12);
            color: #2f7f46;
        }

        .auth-notice--error {
            border: 1px solid var(--error-border);
            background: var(--error-bg);
            color: var(--accent-dark);
        }

        .auth-form {
            margin-top: var(--auth-form-margin-top);
            display: grid;
            gap: var(--auth-form-gap);
            max-width: none;
            width: 100%;
            align-self: center;
        }

        .auth-form-step {
            display: grid;
            gap: inherit;
            width: 100%;
        }

        .auth-form-step[hidden] {
            display: none;
        }

        .auth-field {
            display: grid;
            gap: 8px;
        }

        .auth-field--password {
            gap: 8px;
        }

        .auth-password-control {
            position: relative;
            display: flex;
            align-items: center;
        }

        .auth-password-control--toggle-visible .auth-input {
            padding-right: 52px;
        }

        .auth-password-toggle {
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            color: var(--muted);
            cursor: pointer;
            border-radius: 8px;
        }

        .auth-password-toggle:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
        }

        .auth-password-toggle:hover {
            color: var(--text);
        }

        .auth-password-toggle:disabled {
            cursor: default;
            opacity: 0.5;
        }

        .auth-password-toggle-icon {
            width: 20px;
            height: 20px;
            flex: 0 0 auto;
        }

        .auth-password-toggle-icon--visible,
        .auth-password-toggle[data-revealed="true"] .auth-password-toggle-icon--hidden {
            display: none;
        }

        .auth-password-toggle[data-revealed="true"] .auth-password-toggle-icon--visible {
            display: block;
        }

        .auth-label {
            margin: 0;
            padding: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 20px;
            font-weight: 400;
        }

        .auth-label--required::after,
        .auth-checkbox-text--required::after {
            content: " *";
            color: var(--accent);
        }

        .auth-field--invalid .auth-label,
        .auth-checkbox--invalid .auth-checkbox-text {
            color: var(--accent-dark);
        }

        .auth-input {
            width: 100%;
            min-height: var(--auth-control-height);
            padding: var(--auth-control-padding-y) var(--auth-control-padding-x);
            border: 1px solid var(--field-border);
            border-radius: var(--auth-control-radius);
            background: #fafafa;
            color: var(--text);
            font-size: var(--auth-control-font-size);
            line-height: var(--auth-control-line-height);
            letter-spacing: 0.17px;
            -webkit-appearance: none;
            appearance: none;
        }

        .auth-input::placeholder {
            color: #99938b;
        }

        .auth-input:focus,
        .auth-phone-input:focus-within {
            outline: none;
            border-color: rgba(var(--accent-rgb), 0.56);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10);
        }

        .auth-field--invalid .auth-input,
        .auth-field--invalid .auth-phone-input {
            border-color: rgba(var(--accent-rgb), 0.56);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10);
        }

        .auth-field--invalid .auth-phone-number {
            border-color: transparent;
            box-shadow: none;
        }

        .auth-phone-input {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            min-height: var(--auth-control-height);
            padding: var(--auth-control-padding-y) var(--auth-control-padding-x);
            font-size: var(--auth-control-font-size);
            line-height: var(--auth-control-line-height);
        }

        .auth-country {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            min-width: 24px;
        }

        .auth-country-indicator {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 18px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
            font-size: 14px;
            font-weight: 700;
            line-height: 1;
            border-radius: 2px;
        }

        .auth-country[data-country-state="unknown"] .auth-country-indicator {
            width: 18px;
            height: 18px;
            border: 1px solid rgba(0, 0, 0, 0.22);
            border-radius: 999px;
            color: rgba(0, 0, 0, 0.54);
            font-size: 12px;
            font-weight: 700;
        }

        .auth-phone-number {
            min-width: 0;
            min-height: auto;
            padding: 0;
            border: 0;
            box-shadow: none;
            background: transparent;
            color: inherit;
            font: inherit;
            line-height: inherit;
        }

        .auth-phone-number:disabled {
            opacity: 1;
            -webkit-text-fill-color: currentColor;
        }

        .auth-phone-number:focus {
            box-shadow: none;
            outline: none;
        }

        .auth-meta {
            display: flex;
            justify-content: flex-end;
            margin-top: -2px;
        }

        .auth-link {
            color: #666666;
            font-size: 14px;
            line-height: 18px;
            letter-spacing: 0.17px;
            text-decoration: underline;
            text-underline-offset: 4px;
            text-decoration-color: rgba(16, 16, 16, 0.24);
        }

        .auth-submit {
            min-height: var(--auth-submit-height);
            padding: 12px 24px;
            border: 0;
            border-radius: var(--auth-submit-radius);
            background: var(--accent);
            color: #ffffff;
            font-size: var(--auth-submit-font-size);
            line-height: 1.3;
            letter-spacing: 0.17px;
            font-weight: 400;
            cursor: pointer;
            box-shadow: none;
            transition: background-color 0.18s ease, transform 0.18s ease;
        }

        .auth-submit--link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            text-decoration: none;
        }

        .auth-captcha {
            display: flex;
            justify-content: center;
            min-height: 78px;
            margin-top: 2px;
        }

        .auth-captcha [data-recaptcha] {
            line-height: 0;
        }

        .auth-captcha [data-recaptcha] > div {
            border-radius: 12px;
            overflow: hidden;
        }

        .auth-captcha [data-recaptcha] iframe {
            display: block;
        }

        html[data-theme="dark"] .auth-captcha [data-recaptcha] {
            border-radius: 12px;
            overflow: hidden;
            background: #232323;
        }

        html[data-theme="dark"] .auth-captcha [data-recaptcha] > div {
            clip-path: inset(2px round 12px);
        }

        html[data-theme="dark"] .auth-captcha [data-recaptcha] iframe {
            clip-path: inset(3px 3px 4px 3px round 12px);
        }

        .auth-secondary-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: var(--auth-secondary-height);
            padding: 12px 24px;
            border-radius: var(--auth-secondary-radius);
            color: var(--accent);
            text-decoration: none;
            font-size: var(--auth-secondary-font-size);
            line-height: 1.3;
            letter-spacing: 0.17px;
        }

        .auth-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 32px;
            width: 100%;
            max-width: 828px;
        }

        .auth-footer .auth-language-switcher {
            flex: 0 0 auto;
        }

        .auth-footer .auth-theme-switcher {
            flex: 0 0 auto;
            margin-left: auto;
        }

        .auth-footer-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 32px;
            flex: 1 1 auto;
        }

        .auth-footer-link {
            color: var(--footer-link);
            font-size: 14px;
            line-height: 18px;
            letter-spacing: 0.17px;
            text-decoration: underline;
            text-decoration-color: var(--footer-underline);
            text-underline-offset: 3px;
        }

        .auth-shell--compact .auth-shell-inner {
            max-width: 620px;
            gap: 0;
        }

        .auth-frame--compact {
            display: block;
            width: 100%;
            max-width: 620px;
            overflow: visible;
        }

        .auth-form-panel--compact {
            min-height: auto;
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            align-content: start;
            justify-content: flex-start;
            row-gap: var(--auth-compact-panel-section-gap);
            padding: var(--auth-compact-panel-padding);
        }

        .auth-form-panel--compact > .auth-mobile-brand,
        .auth-form-panel--compact > .auth-intro,
        .auth-form-panel--compact > .auth-feedback,
        .auth-form-panel--compact > .auth-content {
            width: 100%;
        }

        .auth-frame--compact .auth-close {
            display: none;
        }

        .auth-frame--compact .auth-mobile-brand {
            display: flex;
            justify-content: center;
            margin: 0;
        }

        .auth-frame--compact .auth-back {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            color: var(--close-color);
            text-decoration: none;
            position: absolute;
            top: 34px;
            left: 32px;
        }

        .auth-frame--compact .auth-back::before {
            content: "";
            width: 14px;
            height: 14px;
            margin-left: 6px;
            border-left: 3px solid currentColor;
            border-bottom: 3px solid currentColor;
            transform: rotate(45deg);
        }

        .auth-frame--compact .auth-title {
            display: block;
            margin-top: 0;
            font-size: 36px;
            line-height: 1.14;
            letter-spacing: 0;
        }

        .auth-frame--compact .auth-subtitle {
            display: block;
            max-width: 420px;
            margin: 0;
            color: var(--muted);
            text-align: center;
            font-size: 16px;
            line-height: 1.4;
            letter-spacing: 0.17px;
        }

        .auth-subtitle--reset {
            max-width: 520px;
        }

        .auth-reset-phone {
            margin: 0;
            color: var(--text);
            text-align: center;
            font-size: 18px;
            line-height: 1.3;
            font-weight: 700;
            letter-spacing: 0.1px;
        }

        .auth-reset-phone a,
        .auth-reset-phone a[href^="tel"],
        .auth-reset-phone a[x-apple-data-detectors] {
            color: inherit !important;
            text-decoration: none !important;
            font: inherit !important;
            -webkit-text-fill-color: currentColor !important;
            pointer-events: none;
            cursor: default;
        }

        .auth-frame--compact .auth-form {
            margin-top: 0;
            gap: var(--auth-compact-form-gap);
        }

        .auth-frame--compact .auth-intro {
            gap: var(--auth-compact-intro-gap);
        }

        .auth-frame--compact .auth-feedback + .auth-form {
            margin-top: var(--auth-compact-feedback-form-gap);
        }

        .auth-form[data-current-step="code"] {
            margin-top: 0;
            gap: var(--auth-compact-form-gap);
        }

        .auth-frame--compact {
            --auth-control-height: 48px;
            --auth-control-radius: 8px;
            --auth-control-padding-y: 12px;
            --auth-control-padding-x: 12px;
            --auth-control-font-size: 16px;
            --auth-control-line-height: 20px;
            --auth-submit-height: 50px;
            --auth-submit-radius: 8px;
            --auth-submit-font-size: 16px;
            --auth-secondary-height: 44px;
            --auth-secondary-radius: 8px;
            --auth-secondary-font-size: 16px;
        }

        .auth-frame--compact .auth-input {
            background: #fafafa;
        }

        .auth-frame--compact .auth-phone-input {
            gap: 8px;
        }

        .auth-frame--compact .auth-country-button {
            gap: 6px;
            font-size: 16px;
            font-weight: 400;
        }

        .auth-frame--compact .auth-phone-flag {
            font-size: 18px;
        }

        .auth-frame--compact .auth-phone-number {
            font-size: 16px;
            line-height: 24px;
        }

        .auth-frame--compact .auth-secondary-button {
            padding: 8px 20px;
        }

        .auth-code-widget {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: var(--auth-compact-code-gap);
        }

        .auth-code-cell {
            width: 100%;
            min-height: var(--auth-control-height);
            padding: 0;
            border: 1px solid var(--field-border);
            border-radius: var(--auth-control-radius);
            background: #fafafa;
            color: var(--text);
            caret-color: currentColor;
            text-align: center;
            font: inherit;
            font-size: 28px;
            line-height: 1;
            letter-spacing: 0;
            -webkit-appearance: none;
            appearance: none;
        }

        .auth-code-cell:-webkit-autofill,
        .auth-code-cell:-webkit-autofill:hover,
        .auth-code-cell:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--text);
            transition: background-color 9999s ease-in-out 0s;
            box-shadow: inset 0 0 0 1000px #fafafa;
        }

        .auth-code-cell:focus {
            outline: none;
            border-color: rgba(var(--accent-rgb), 0.56);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10);
        }

        .auth-verification-meta,
        .auth-reset-meta {
            display: grid;
            justify-items: center;
            gap: max(var(--auth-compact-meta-gap), var(--auth-touch-target-gap));
            margin-top: 0;
            width: 100%;
        }

        .auth-resend-slot {
            position: relative;
            width: 100%;
            height: var(--auth-resend-slot-height);
            min-height: var(--auth-resend-slot-height);
        }

        .auth-verification-copy,
        .auth-reset-resend-copy {
            margin: 0;
            color: var(--muted);
            text-align: center;
            font-size: 14px;
            line-height: 20px;
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-inline: 8px;
            width: 100%;
            transition: opacity 0.18s ease;
        }

        .auth-link-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: var(--auth-touch-target-min-height);
            border: 0;
            padding: 12px 8px;
            background: transparent;
            color: var(--accent);
            font: inherit;
            font-size: 18px;
            line-height: 24px;
            cursor: pointer;
        }

        .auth-link-button[disabled] {
            color: var(--muted-soft);
            cursor: default;
        }

        .auth-link-button[hidden] {
            display: none !important;
        }

        .auth-link-button--resend {
            position: absolute;
            inset: 0;
            width: 100%;
            min-height: var(--auth-resend-slot-height);
            transition: opacity 0.18s ease;
        }

        .auth-resend-prefix {
            white-space: nowrap;
            margin-inline-end: 0.4ch;
        }

        .auth-resend-timer {
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .auth-resend-slot[data-state="countdown"] .auth-verification-copy {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .auth-resend-slot[data-state="countdown"] .auth-link-button--resend,
        .auth-resend-slot[data-state="ready"] .auth-verification-copy,
        .auth-resend-slot[data-state="hidden"] .auth-verification-copy,
        .auth-resend-slot[data-state="hidden"] .auth-link-button--resend {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .auth-resend-slot[data-state="ready"] .auth-link-button--resend {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .auth-field--code {
            gap: 10px;
        }

        .auth-checkbox {
            display: grid;
            grid-template-columns: 18px minmax(0, 1fr);
            align-items: center;
            gap: 12px;
            color: var(--muted);
            font-size: 14px;
            line-height: 20px;
            cursor: pointer;
        }

        .auth-checkbox-input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .auth-checkbox-box {
            width: 18px;
            height: 18px;
            border: 1px solid var(--field-border);
            border-radius: 5px;
            background: #fafafa;
            position: relative;
            transition: border-color 0.18s ease, background-color 0.18s ease;
        }

        .auth-checkbox-input:checked + .auth-checkbox-box {
            border-color: var(--accent);
            background: var(--accent);
        }

        .auth-checkbox-input:checked + .auth-checkbox-box::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 10px;
            border-right: 2px solid #ffffff;
            border-bottom: 2px solid #ffffff;
            transform: translate(-50%, -58%) rotate(45deg);
        }

        .auth-checkbox-input:focus-visible + .auth-checkbox-box {
            outline: none;
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10);
            border-color: rgba(var(--accent-rgb), 0.56);
        }

        .auth-checkbox--invalid .auth-checkbox-box {
            border-color: rgba(var(--accent-rgb), 0.56);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10);
        }

        .auth-checkbox-text {
            min-width: 0;
        }

        .auth-form[data-current-step="code"] .auth-submit {
            width: 100%;
            justify-self: stretch;
        }

        .auth-form[data-current-step="code"] .auth-secondary-button {
            width: 100%;
            justify-self: center;
        }

        .auth-form[data-current-step="code"] .auth-submit,
        .auth-form[data-current-step="code"] .auth-secondary-button {
            margin-top: 0;
        }

        .auth-form--reset-confirm .auth-submit,
        .auth-form--reset-confirm .auth-secondary-button {
            width: 100%;
            justify-self: stretch;
        }

        .auth-form--reset-confirm[data-current-step="code"] {
            margin-top: 0;
            gap: var(--auth-compact-form-gap);
        }

        .auth-form-panel--verification .auth-title,
        .auth-form-panel--verification .auth-subtitle,
        .auth-form-panel--verification .auth-reset-phone,
        .auth-form-panel--verification .auth-notice,
        .auth-form-panel--verification .auth-verification-copy,
        .auth-form-panel--verification .auth-reset-resend-copy {
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .auth-form-panel--verification .auth-title,
        .auth-form-panel--verification .auth-subtitle,
        .auth-form-panel--verification .auth-reset-phone,
        .auth-form-panel--verification .auth-notice {
            max-width: none;
        }

        .auth-form-panel--verification .auth-verification-meta,
        .auth-form-panel--verification .auth-reset-meta {
            justify-items: center;
        }

        .auth-form-panel--verification .auth-feedback,
        .auth-form-panel--verification .auth-feedback--empty {
            display: grid;
            align-content: center;
            min-height: var(--auth-verification-feedback-slot-height);
            margin-top: 0;
        }

        .auth-form--reset-confirm .auth-code-widget {
            margin-top: 0;
        }

        .auth-form--reset-confirm .auth-verification-meta,
        .auth-form--reset-confirm .auth-reset-meta {
            gap: max(var(--auth-compact-meta-gap), var(--auth-touch-target-gap));
            margin-top: 0;
        }

        .auth-form--reset-confirm[data-current-step="code"] .auth-submit {
            margin-top: 0;
        }

        .auth-form--reset-confirm[data-current-step="code"] .auth-secondary-button {
            margin-top: 0;
        }

        .auth-form--signup-confirm .auth-submit,
        .auth-form--signup-confirm .auth-secondary-button {
            width: 100%;
            justify-self: stretch;
        }

        @media (min-width: 641px) {
            html[data-theme="dark"] .auth-frame {
                background: #252525;
            }

            html[data-theme="dark"] .auth-field {
                gap: 8px;
            }

            html[data-theme="dark"] .auth-promo {
                padding: 12px 0 12px 12px;
            }

            html[data-theme="dark"] .auth-form-panel {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-title {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-promo-copy p {
                color: rgba(255, 255, 255, 0.6);
            }

            html[data-theme="dark"] .auth-store-strong {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-store-inline-link {
                color: #ffffff;
                text-decoration-color: rgba(255, 255, 255, 0.34);
            }

            html[data-theme="dark"] .auth-close {
                color: rgba(255, 255, 255, 0.3);
            }

            html[data-theme="dark"] .auth-preference-select-control {
                background: rgba(255, 255, 255, 0.06);
                border-color: rgba(255, 255, 255, 0.08);
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-preference-select-caret::before,
            html[data-theme="dark"] .auth-preference-select-caret::after {
                background: rgba(255, 255, 255, 0.6);
            }

            html[data-theme="dark"] .auth-label {
                position: static;
                z-index: auto;
                display: block;
                width: auto;
                align-self: flex-start;
                margin: 0;
                padding: 0;
                background: transparent;
                color: rgba(255, 255, 255, 0.6);
                box-shadow: none;
            }

            html[data-theme="dark"] .auth-input {
                background: #343434;
                border-color: #343434;
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-input::placeholder {
                color: rgba(255, 255, 255, 0.38);
            }

            html[data-theme="dark"] .auth-country-button {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-phone-code::before {
                border-bottom-color: rgba(255, 255, 255, 0.45);
            }

            html[data-theme="dark"] .auth-country[data-open="true"] .auth-phone-code::before {
                border-top-color: rgba(255, 255, 255, 0.45);
            }

            html[data-theme="dark"] .auth-country-menu {
                border-color: rgba(255, 255, 255, 0.08);
                background: #2f2f2f;
                box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
            }

            html[data-theme="dark"] .auth-country-search {
                background: #2f2f2f;
            }

            html[data-theme="dark"] .auth-country-search-input {
                background: #252525;
                border-color: rgba(255, 255, 255, 0.1);
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-country-search-input::placeholder {
                color: rgba(255, 255, 255, 0.35);
            }

            html[data-theme="dark"] .auth-country-search-input:focus {
                background: #252525;
                border-color: rgba(var(--accent-rgb), 0.52);
                box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
            }

            html[data-theme="dark"] .auth-country-option:hover,
            html[data-theme="dark"] .auth-country-option:focus-visible,
            html[data-theme="dark"] .auth-country-option[data-selected="true"] {
                background: rgba(255, 255, 255, 0.06);
            }

            html[data-theme="dark"] .auth-country-name {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-country-dial {
                color: rgba(255, 255, 255, 0.5);
            }

            html[data-theme="dark"] .auth-country-empty {
                color: rgba(255, 255, 255, 0.5);
            }

            html[data-theme="dark"] .auth-link {
                color: rgba(255, 255, 255, 0.3);
                text-decoration-color: rgba(255, 255, 255, 0.14);
            }

            html[data-theme="dark"] .auth-secondary-button {
                color: var(--accent);
            }

            html[data-theme="dark"] .auth-password-toggle {
                color: var(--accent);
            }

            html[data-theme="dark"] .auth-checkbox {
                color: rgba(255, 255, 255, 0.6);
            }

            html[data-theme="dark"] .auth-checkbox-box {
                background: #343434;
                border-color: #343434;
            }

            html[data-theme="dark"] .auth-footer-link {
                color: rgba(255, 255, 255, 0.18);
                text-decoration-color: rgba(255, 255, 255, 0.12);
            }

            html[data-theme="dark"] .auth-frame--compact {
                background: #252525;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-back {
                color: rgba(255, 255, 255, 0.45);
            }

            html[data-theme="dark"] .auth-frame--compact .auth-title {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-subtitle {
                color: rgba(255, 255, 255, 0.45);
            }

            html[data-theme="dark"] .auth-frame--compact .auth-input,
            html[data-theme="dark"] .auth-frame--compact .auth-phone-input {
                background: #343434;
                border-color: #343434;
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-code-cell {
                background: #343434;
                border-color: #343434;
                color: #ffffff;
                -webkit-text-fill-color: #ffffff;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-code-cell:-webkit-autofill,
            html[data-theme="dark"] .auth-frame--compact .auth-code-cell:-webkit-autofill:hover,
            html[data-theme="dark"] .auth-frame--compact .auth-code-cell:-webkit-autofill:focus {
                -webkit-text-fill-color: #ffffff;
                box-shadow: inset 0 0 0 1000px #343434;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-input::placeholder {
                color: rgba(255, 255, 255, 0.38);
            }

            html[data-theme="dark"] .auth-frame--compact .auth-country-button,
            html[data-theme="dark"] .auth-frame--compact .auth-phone-number {
                color: #ffffff;
                -webkit-text-fill-color: #ffffff;
            }

            html[data-theme="dark"] .auth-country[data-country-state="unknown"] .auth-country-indicator {
                border-color: rgba(255, 255, 255, 0.24);
                color: rgba(255, 255, 255, 0.7);
            }

        }

        .auth-submit:hover {
            background: var(--accent-hover);
        }

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

        @media (max-width: 1024px) {
            .auth-frame {
                display: block;
                max-width: 436px;
                overflow: hidden;
            }

            .auth-frame--compact {
                max-width: 620px;
            }

            .auth-promo {
                display: none;
            }

            .auth-form-panel {
                min-height: auto;
                padding: 46px 38px 42px;
            }
        }

        @media (max-width: 640px) {
            body {
                background: #ffffff;
            }

            .auth-shell {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
            }

            .auth-frame {
                border: 0;
                border-radius: 0;
                box-shadow: none;
                background: transparent;
                overflow: visible;
                display: block;
                max-width: none;
            }

            .auth-shell-inner {
                gap: 0;
            }

            .auth-toolbar {
                display: none;
            }

            .auth-promo {
                display: none;
            }

            .auth-form-panel {
                min-height: 100vh;
                justify-content: flex-start;
                color: #000000;
                padding:
                    max(54px, env(safe-area-inset-top))
                    16px
                    max(20px, env(safe-area-inset-bottom))
                    16px;
            }

            .auth-back {
                display: none;
            }

            .auth-close {
                display: none;
            }

            .auth-mobile-brand {
                display: flex;
                justify-content: center;
                min-height: 44px;
                margin: 0 0 30px;
                padding: 0 44px;
                align-items: center;
            }

            .auth-mobile-brand .auth-logo {
                width: 126px;
                height: 36px;
            }

            .auth-title {
                display: none;
            }

            .auth-subtitle {
                display: none;
            }

            .auth-theme-switcher--desktop {
                display: none;
            }

            .auth-theme-switcher--mobile {
                display: inline-flex;
                align-self: stretch;
                margin: 0;
                justify-self: end;
            }

            .auth-language-switcher--mobile {
                display: inline-flex;
                align-self: stretch;
                margin: 0;
                justify-self: start;
            }

            .auth-mobile-preferences {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                align-items: center;
                gap: 12px;
                margin-top: auto;
                width: 100%;
                padding:
                    20px 0
                    max(8px, env(safe-area-inset-bottom));
            }

            .auth-form {
                margin-top: 0;
                gap: 16px;
            }

            .auth-intro {
                gap: 14px;
            }

            .auth-frame {
                --auth-control-height: 48px;
                --auth-control-radius: 8px;
                --auth-control-padding-y: 12px;
                --auth-control-padding-x: 12px;
                --auth-control-font-size: 16px;
                --auth-control-line-height: 20px;
                --auth-submit-height: 48px;
                --auth-submit-radius: 8px;
                --auth-submit-font-size: 16px;
                --auth-secondary-height: 48px;
                --auth-secondary-radius: 8px;
                --auth-secondary-font-size: 16px;
                --auth-touch-target-min-height: 48px;
                --auth-touch-target-gap: 12px;
            }

            .auth-label {
                font-size: 12px;
                margin: 0;
                padding: 0;
                background: transparent;
                color: rgba(0, 0, 0, 0.6);
                line-height: 20px;
                letter-spacing: 0.4px;
            }

            .auth-input {
                background: #fafafa;
                border-color: #eeeeee;
            }

            .auth-phone-input {
                gap: 4px;
            }

            .auth-country-button {
                gap: 4px;
                font-size: 16px;
                font-weight: 400;
                letter-spacing: 0.17px;
            }

            .auth-country-indicator {
                width: 18px;
                height: 14px;
                font-size: 11px;
            }

            .auth-phone-number {
                min-height: 0;
                padding: 0;
                font-size: 16px;
                line-height: 20px;
            }

            .auth-country-menu {
                top: calc(100% + 12px);
                width: min(100vw - 32px, 328px);
                max-height: min(320px, 48vh);
                border-radius: 8px;
            }

            .auth-country-option {
                grid-template-columns: 28px minmax(0, 1fr) auto;
                gap: 12px;
                padding: 12px 14px;
            }

            .auth-country-name,
            .auth-country-dial {
                font-size: 16px;
                line-height: 20px;
            }

            .auth-country-search {
                padding: 0 10px 8px;
            }

            .auth-country-search-input {
                min-height: 38px;
                padding: 8px 10px;
                font-size: 14px;
                border-radius: 9px;
            }

            .auth-error {
                margin-top: 0;
                padding: 12px 14px;
                border-radius: 14px;
                font-size: 14px;
                line-height: 18px;
            }

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

            .auth-link {
                font-size: 14px;
                line-height: 18px;
                text-underline-offset: 3px;
            }

            .auth-captcha {
                margin-top: 0;
            }

            .auth-submit {
                width: 100%;
                padding: 12px 18px;
                font-weight: 400;
            }

            .auth-secondary-button {
                padding: 8px 18px;
                line-height: 20px;
                letter-spacing: 0.17px;
            }

            .auth-secondary-button--desktop-only {
                display: none;
            }

            .auth-footer {
                display: none;
            }

            .auth-frame--compact .auth-title {
                display: block;
                font-size: 32px;
                line-height: 1.18;
            }

            .auth-frame--compact .auth-subtitle {
                display: block;
                margin-top: 14px;
            }

            .auth-reset-phone {
                font-size: 17px;
            }

            .auth-frame--compact .auth-form-panel {
                padding:
                    max(40px, env(safe-area-inset-top))
                    20px
                    max(24px, env(safe-area-inset-bottom))
                    20px;
            }

            .auth-frame--compact .auth-mobile-brand {
                display: flex;
                margin: 0 0 20px;
                justify-content: center;
                align-items: center;
                min-height: 44px;
                padding: 0 44px;
            }

            .auth-frame--compact .auth-label {
                background: transparent;
                margin: 0;
                padding: 0;
            }

            .auth-code-widget {
                gap: 8px;
            }

            .auth-code-cell {
                min-height: 48px;
                border-radius: 8px;
                font-size: 24px;
            }

            .auth-form[data-current-step="code"] .auth-submit {
                width: 100%;
                justify-self: stretch;
            }

            .auth-form[data-current-step="code"] .auth-secondary-button {
                width: 100%;
                justify-self: stretch;
            }

            .auth-link-button {
                font-size: 16px;
                line-height: 20px;
            }

            html[data-theme="dark"] .auth-frame--compact .auth-label {
                background: transparent;
            }

            html[data-theme="dark"] body {
                background: #252525;
            }

            html[data-theme="dark"] .auth-form-panel {
                background: #252525;
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-back {
                color: rgba(255, 255, 255, 0.7);
            }

            html[data-theme="dark"] .auth-label {
                background: transparent;
                color: rgba(255, 255, 255, 0.45);
            }

            html[data-theme="dark"] .auth-input {
                background: #343434;
                border-color: #343434;
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-code-cell {
                background: #343434;
                border-color: #343434;
                color: #ffffff;
                -webkit-text-fill-color: #ffffff;
            }

            html[data-theme="dark"] .auth-code-cell:-webkit-autofill,
            html[data-theme="dark"] .auth-code-cell:-webkit-autofill:hover,
            html[data-theme="dark"] .auth-code-cell:-webkit-autofill:focus {
                -webkit-text-fill-color: #ffffff;
                box-shadow: inset 0 0 0 1000px #343434;
            }

            html[data-theme="dark"] .auth-country-button {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-phone-number {
                color: #ffffff;
                -webkit-text-fill-color: #ffffff;
            }

            html[data-theme="dark"] .auth-country[data-country-state="unknown"] .auth-country-indicator {
                border-color: rgba(255, 255, 255, 0.24);
                color: rgba(255, 255, 255, 0.7);
            }

            html[data-theme="dark"] .auth-country-menu {
                background: #2f2f2f;
                border-color: rgba(255, 255, 255, 0.08);
                box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
            }

            html[data-theme="dark"] .auth-country-search {
                background: #2f2f2f;
            }

            html[data-theme="dark"] .auth-country-search-input {
                background: #252525;
                border-color: rgba(255, 255, 255, 0.1);
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-country-search-input::placeholder {
                color: rgba(255, 255, 255, 0.35);
            }

            html[data-theme="dark"] .auth-country-name {
                color: #ffffff;
            }

            html[data-theme="dark"] .auth-country-dial,
            html[data-theme="dark"] .auth-country-empty {
                color: rgba(255, 255, 255, 0.5);
            }

            html[data-theme="dark"] .auth-country-option:hover,
            html[data-theme="dark"] .auth-country-option:focus-visible,
            html[data-theme="dark"] .auth-country-option[data-selected="true"] {
                background: rgba(255, 255, 255, 0.06);
            }

            html[data-theme="dark"] .auth-link {
                color: rgba(255, 255, 255, 0.18);
                text-decoration-color: rgba(255, 255, 255, 0.14);
            }

            html[data-theme="dark"] .auth-secondary-button {
                color: var(--accent);
            }

            html[data-theme="dark"] .auth-error {
                background: var(--error-bg);
                border-color: var(--error-border);
                color: var(--accent-dark);
            }
        }
