        @font-face {
            font-family: "Google Sans Flex";
            src: url("/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf") format("truetype");
            font-weight: 100 1000;
            font-stretch: 25% 151%;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --navy-deep: #1c2d3e;
            --navy-light: #243447;
            --primary: #1c2d3e;
            --primary-dark: #152235;
            --secondary: #64748b;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;
            --gray-600: #475569;
            --gray-700: #334155;
            --gray-800: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --border-radius: 12px;
            --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "Inter", "Google Sans Flex", system-ui, -apple-system, sans-serif;
            background: #f0f2f5;
            color: var(--navy-deep);
            line-height: 1.6;
        }

        .boot-loader {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(226, 232, 240, 0.94));
            backdrop-filter: blur(2px);
        }

        .boot-loader__card {
            min-width: 220px;
            padding: 16px 18px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid var(--gray-200);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .boot-loader__spinner {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 3px solid #dbe4ee;
            border-top-color: var(--primary);
            animation: bootSpin 0.9s linear infinite;
        }

        .boot-loader__text {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-700);
            text-align: center;
        }

        @keyframes bootSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .login-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 24px;
        }

        .login-background {
            position: relative;
            width: 100%;
            min-height: calc(100vh - 48px);
            border-radius: 24px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 20px;
        }

        .navy-bg {
            background-color: var(--navy-deep);
        }

        .circle-decorator {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.035);
            pointer-events: none;
            animation: circleFloat 28s ease-in-out infinite;
            will-change: transform;
        }

        .circle-decorator--top {
            width: 620px;
            height: 620px;
            top: -52%;
            right: -28%;
            animation-delay: -4s;
        }

        .circle-decorator--bottom {
            width: 420px;
            height: 420px;
            bottom: -8%;
            left: -8%;
            animation-delay: -18s;
        }

        @keyframes circleFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(12px, 18px) scale(1.015); }
            50% { transform: translate(-8px, 28px) scale(0.985); }
            75% { transform: translate(18px, -6px) scale(1.01); }
        }

        /* Дышащие кружочки */
        .breathe-circle {
            position: absolute;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.09);
            pointer-events: none;
            animation: breathe 3.8s ease-in-out infinite;
            will-change: transform, opacity;
        }

        .breathe-left {
            width: 32px;
            height: 32px;
            bottom: 16%;
            left: 5%;
            background: rgba(255, 255, 255, 0.11);
            animation-delay: 0s;
        }

        .breathe-accent {
            width: 20px;
            height: 20px;
            top: 19%;
            left: 11%;
            background: rgba(255, 255, 255, 0.16);
            animation-duration: 4.6s;
            animation-delay: -1.8s;
        }

        @keyframes breathe {
            0%, 100% {
                transform: scale(1);
                opacity: 0.5;
            }
            50% {
                transform: scale(1.38);
                opacity: 0.95;
            }
        }

        /* Воздушные шарики — пролетают снизу вверх на фоне */
        .balloon {
            position: absolute;
            bottom: -90px;
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            animation: balloon-rise 28s ease-in-out infinite;
            will-change: transform, opacity;
        }

        .balloon::before {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 2px;
            width: 28px;
            height: 36px;
            background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.55) 0%, #ff9aa2 40%, #e06878 100%);
            border-radius: 35% 35% 50% 50% / 35% 35% 65% 65%;
            transform: translateX(-50%);
        }

        .balloon::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 100%;
            width: 1.5px;
            height: 24px;
            background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(200,200,200,0.2));
            transform: translateX(-50%);
            border-radius: 1px;
            animation: string-twist 3.2s ease-in-out infinite;
        }

        .balloon--1 {
            left: 9%;
            animation-duration: 26s;
            animation-delay: -6s;
        }

        .balloon--2 {
            left: 71%;
            animation-duration: 34s;
            animation-delay: -19s;
        }

        .balloon--2::before {
            width: 23px;
            height: 30px;
            background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.5) 0%, #a5d8ff 40%, #5aabee 100%);
        }

        .balloon--2::after {
            height: 19px;
        }

        /* Третий шарик — маленький мятный, тихий */
        .balloon--3 {
            left: 44%;
            animation-duration: 38s;
            animation-delay: -11s;
        }

        .balloon--3::before {
            width: 18px;
            height: 24px;
            background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.5) 0%, #96f2d7 40%, #38d9a9 100%);
        }

        .balloon--3::after {
            height: 16px;
            animation-duration: 4s;
            animation-delay: -1.2s;
        }

        @keyframes balloon-rise {
            0% {
                transform: translateY(0) translateX(0) rotate(-1deg);
                opacity: 0;
            }
            6% { opacity: 0.28; }
            30% {
                transform: translateY(-28vh) translateX(20px) rotate(3deg);
            }
            55% {
                transform: translateY(-58vh) translateX(-14px) rotate(-2deg);
                opacity: 0.28;
            }
            80% {
                transform: translateY(-88vh) translateX(22px) rotate(4deg);
                opacity: 0.18;
            }
            100% {
                transform: translateY(-120vh) translateX(-8px) rotate(-1deg);
                opacity: 0;
            }
        }

        @keyframes string-twist {
            0%, 100% { transform: translateX(-50%) rotate(-5deg); }
            50%       { transform: translateX(-50%) rotate(6deg); }
        }

        .login-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            padding: 32px 32px 28px;
            max-width: 400px;
            width: 100%;
            position: relative;
            z-index: 10;
            animation: loginCardEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes loginCardEnter {
            from {
                opacity: 0;
                transform: translateY(18px) scale(0.985);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .icon-badge {
            width: 96px;
            height: 96px;
            background-color: var(--navy-deep);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 40px;
            box-shadow: 0 10px 30px rgba(28, 45, 62, 0.3);
            border: 4px solid #fff;
            margin: -48px auto 28px;
            animation: iconBadgePop 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
            animation-delay: 80ms;
        }

        .icon-badge i {
            font-size: 38px;
            line-height: 1;
            display: inline-block;
        }

        @keyframes iconBadgePop {
            from { opacity: 0; transform: scale(0.6) translateY(6px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .form-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--navy-deep);
            margin: 0 0 8px;
            text-align: center;
        }

        .form-subtitle {
            font-size: 14px;
            color: #94a3b8;
            text-align: center;
            margin-bottom: 24px;
        }

        .input-field {
            width: 100%;
            padding: 16px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            background-color: #f8fafc;
            font-family: inherit;
            font-size: 14px;
            transition: all 0.3s ease;
            margin-bottom: 4px;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--navy-deep);
            box-shadow: 0 0 0 4px rgba(28, 45, 62, 0.12);
            background-color: #fff;
            transform: translateY(-1px);
        }

        .submit-button {
            width: 100%;
            padding: 16px;
            background-color: var(--navy-deep);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-family: inherit;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .submit-button:hover:not(:disabled) {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(28, 45, 62, 0.28);
        }

        .submit-button:active:not(:disabled) {
            transform: translateY(0) scale(0.985);
        }

        /* Subtle shine on login button */
        .submit-button {
            position: relative;
            overflow: hidden;
        }
        .submit-button::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -100%;
            width: 40%;
            height: 200%;
            background: linear-gradient(
                120deg,
                transparent,
                rgba(255,255,255,0.22),
                transparent
            );
            transition: left 0.6s;
        }
        .submit-button:hover:not(:disabled)::after {
            left: 160%;
        }

        .submit-button:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }

        .form-label--upper {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .login-forgot-wrap {
            text-align: center;
            margin-top: 16px;
        }

        .login-vpn-warn-btn--card {
            position: absolute;
            top: 14px;
            right: 14px;
        }

        /* legacy grid (unused) */
        .auth-container { min-height: 100vh; }
        .auth-wrapper { display: none; }

        /* Левый блок */
        .auth-info {
            background: linear-gradient(135deg, var(--primary) 0%, #132739 100%);
            color: white;
            padding: 42px 34px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border-radius: 20px 0 0 20px;
        }

        .auth-info::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .auth-info::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -80px;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .auth-logo { display: none; }
        .auth-title { font-size: 30px; font-weight: 700; margin-bottom: 14px; z-index: 1; line-height: 1.25; }
        .auth-subtitle { font-size: 15px; opacity: 0.92; margin-bottom: 24px; line-height: 1.5; z-index: 1; }
        .auth-features { display: flex; flex-direction: column; gap: 14px; z-index: 1; }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            transition: var(--transition);
        }

        .feature-item:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(5px);
        }

        .feature-item i { font-size: 16px; opacity: 0.9; width: 20px; text-align: center; }

        /* Правый блок — форма: прокручивается, капча внутри границ */
        .auth-form-wrap {
            padding: 34px 30px;
            background: white;
            border-radius: 0 20px 20px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 580px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .auth-form-card {
            width: 100%;
            max-width: 360px;
            animation: fadeInUp 0.6s ease;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-header { text-align: center; margin-bottom: 24px; position: relative; padding-top: 2px; }
.form-header h2 { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
        .login-vpn-warn-btn {
            position: absolute;
            top: 0;
            right: 0;
            width: 1.9rem;
            height: 1.9rem;
            border-radius: 0.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(251, 191, 36, 0.65);
            background: rgba(254, 243, 199, 0.98);
            color: #b45309;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12);
            z-index: 2;
        }
        .login-vpn-warn-btn:hover {
            background: #fffbeb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
        }
        .login-vpn-warn-btn i { font-size: 0.82rem; }
        .form-header p { color: var(--gray-600); font-size: 14px; margin-bottom: 0; }

        .lock-icon {
            position: absolute;
            top: 4px;
            left: 0;
            width: 22px;
            height: 22px;
            background: transparent;
            border: none;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
        }

        .lock-icon i { font-size: 13px; color: var(--gray-500); }

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

        .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
        .form-label { font-weight: 600; color: var(--gray-700); font-size: 14px; margin-bottom: 2px; }

        .form-control-creative {
            padding: 14px 16px;
            border: 2px solid var(--gray-200);
            border-radius: 12px;
            font-size: 15px;
            transition: var(--transition);
            background: var(--light);
        }

        .form-control-creative:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: white;
        }

        .form-control-creative::placeholder { color: var(--gray-400); }

        /* Капча — пазл остаётся на месте; «Подтверждено» показывает сам SliderCaptcha */
        .captcha-form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }

        .captcha-puzzle-wrap {
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }

        .captcha-puzzle-wrap > div {
            max-width: 100% !important;
        }

        .captcha-puzzle-wrap .slider-captcha-stage,
        .captcha-puzzle-wrap .slider-captcha-bar {
            max-width: 100% !important;
            box-sizing: border-box;
        }

        .captcha-puzzle-wrap .slider-captcha-stage canvas,
        .captcha-puzzle-wrap .slider-captcha-stage img {
            image-rendering: auto;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
        }

        /* Пазл не квадратный; top/left не фиксируем */
        .captcha-puzzle-wrap .slider-captcha-stage img[style*="cursor: grab"],
        .captcha-puzzle-wrap .slider-captcha-stage img[style*="cursor:grab"] {
            width: 52px !important;
            height: auto !important;
            max-height: 44px;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.45));
        }

        .btn-forgot-password {
            background: none;
            border: none;
            color: var(--navy-deep);
            font-size: 14px;
            cursor: pointer;
            text-decoration: none;
            transition: var(--transition);
            padding: 8px 0;
            font-weight: 500;
        }

        .btn-forgot-password:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border: none;
            border-radius: 10px;
            padding: 14px 26px;
            color: white;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: var(--transition);
            min-width: 124px;
            box-shadow: 0 4px 15px rgba(79, 94, 114, 0.2);
        }

        .btn-login:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 94, 114, 0.3);
        }

        .btn-login:active:not(:disabled) { transform: translateY(0); }
        .btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

        .login-loading { display: flex; align-items: center; gap: 10px; }
        .login-loading i { animation: spin 1s linear infinite; }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        .invalid { color: var(--danger); font-size: 13px; margin-top: 6px; font-weight: 500; }

        /* Toast-уведомления (как в ЛК) */
        .lk-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            left: auto;
            z-index: 10050;
            max-width: min(420px, calc(100vw - 24px));
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 16px 16px 16px 18px;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            box-shadow:
                0 4px 6px -1px rgba(15, 23, 42, 0.07),
                0 12px 36px -8px rgba(15, 23, 42, 0.18);
            animation: lkToastIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: left;
            font-size: 0.9375rem;
            line-height: 1.5;
            color: #1e293b;
        }

        .lk-toast--success { border-left: 4px solid #22c55e; }
        .lk-toast--error { border-left: 4px solid #ef4444; }

        .lk-toast__icon {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .lk-toast--success .lk-toast__icon {
            background: #ecfdf5;
            color: #059669;
        }

        .lk-toast--error .lk-toast__icon {
            background: #fef2f2;
            color: #dc2626;
        }

        .lk-toast__content {
            flex: 1;
            min-width: 0;
            color: #334155;
        }

        .lk-toast__content .lk-toast__title {
            margin: 0 0 8px 0;
            font-size: 1rem;
            font-weight: 600;
            color: #0f172a;
            line-height: 1.35;
        }

        .lk-toast__content .lk-toast__lead {
            margin: 0;
            font-weight: 500;
            color: #1e293b;
        }

        .lk-toast__content .lk-toast__muted {
            margin: 8px 0 0 0;
            font-size: 0.875rem;
            color: #64748b;
        }

        .lk-toast__content .lk-toast__title + .lk-toast__muted {
            margin-top: 6px;
        }

        .lk-toast__content .lk-toast__list {
            margin: 8px 0 0 0;
            padding-left: 1.15rem;
            color: #475569;
            font-size: 0.9rem;
        }

        .lk-toast__content .lk-toast__list li { margin-bottom: 4px; }
        .lk-toast__content .lk-toast__list li:last-child { margin-bottom: 0; }

        .lk-toast__content pre {
            margin: 8px 0 0 0;
            font-size: 0.8rem;
            white-space: pre-wrap;
            word-break: break-word;
            color: #475569;
            max-height: 200px;
            overflow: auto;
        }

        .lk-toast__close {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            padding: 0;
            border: none;
            background: transparent;
            color: #94a3b8;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, color 0.15s ease;
            margin: -4px -4px 0 0;
        }

        .lk-toast__close:hover {
            background: #f1f5f9;
            color: #475569;
        }

        @media (max-width: 576px) {
            .lk-toast {
                left: 12px;
                right: 12px;
                top: 12px;
                max-width: none;
            }
        }

        .vpn-warning-banner {
            position: fixed;
            left: 50%;
            top: 16px;
            transform: translateX(-50%);
            z-index: 1100;
            width: min(920px, calc(100% - 24px));
            background: #fff7ed;
            border: 1px solid #fed7aa;
            border-left: 4px solid #f97316;
            color: #9a3412;
            border-radius: 12px;
            padding: 10px 14px;
            font-size: 0.92rem;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        }

        .vpn-warning-banner-inner {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .vpn-warning-banner-text {
            flex: 1;
            line-height: 1.45;
        }

        .vpn-warning-dismiss {
            flex-shrink: 0;
            border: 1px solid #fdba74;
            background: #fff;
            color: #9a3412;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            white-space: nowrap;
        }

        .vpn-warning-dismiss:hover {
            background: #ffedd5;
        }

        @keyframes lkToastIn {
            from { transform: translateX(calc(100% + 12px)); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Унифицированный стиль модальных окон */
        .modal-content { border-radius: 16px; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; }
        .modal-header { background: linear-gradient(135deg, #334155 0%, #1e293b 100%); color: white; padding: 18px 24px; border-bottom: none; display: flex; align-items: center; justify-content: space-between; }
        .modal-header .modal-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
        .modal-header .close { background: transparent; border: none; color: rgba(255,255,255,0.9); font-size: 1.75rem; line-height: 1; padding: 0; cursor: pointer; opacity: 1; }
        .modal-header .close:hover { color: white; }
        .modal-body { padding: 24px; background: #fff; }
        .modal-footer { padding: 20px 24px; background: #f8fafc; border-top: 1px solid #e2e8f0; gap: 12px; }
        .modal-footer .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; color: white; padding: 12px 24px; border-radius: 12px; font-weight: 600; }
        .modal-footer .btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #132739); transform: translateY(-1px); }
        .modal-footer .btn-secondary { background: #fff; border: 1.5px solid #e2e8f0; color: #475569; padding: 12px 24px; border-radius: 12px; font-weight: 500; }
        .modal-footer .btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border: none;
            border-radius: var(--border-radius);
            padding: 10px 20px;
            font-weight: 600;
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, #132739 100%);
            transform: translateY(-1px);
        }

        .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; }
        .fade-enter, .fade-leave-to { opacity: 0; }

        .login-cooldown-banner {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            background: linear-gradient(135deg, #fff7ed, #ffedd5);
            border: 1px solid #fdba74;
            color: #9a3412;
            font-size: 0.95rem;
            line-height: 1.45;
            margin-bottom: 8px;
        }

        /*
         * Восстановление пароля — структура и вид на странице входа
         * (разметка в components/pass-recovery.vue; здесь — оформление под login.html)
         */
        #recoveryPasswordModal .modal-dialog.recovery-modal-dialog {
            max-width: 440px;
            width: calc(100% - 1rem);
        }
        #recoveryPasswordModal .recovery-modal-content.account-modal {
            border-radius: 16px;
        }
        #recoveryPasswordModal .recovery-modal-header.modal-header {
            align-items: flex-start;
            gap: 12px;
        }
        #recoveryPasswordModal .recovery-modal-heading-block {
            flex: 1;
            min-width: 0;
            padding-right: 4px;
        }
        #recoveryPasswordModal .recovery-modal-subtitle {
            font-size: 0.8125rem;
            font-weight: 400;
            line-height: 1.45;
            color: rgba(255, 255, 255, 0.88);
            margin: 0.4rem 0 0;
        }
        #recoveryPasswordModal .recovery-modal-body {
            padding: 22px 24px 24px;
        }
        #recoveryPasswordModal .recovery-form-group {
            margin-bottom: 0;
        }
        #recoveryPasswordModal .recovery-form-group + .recovery-form-group {
            margin-top: 0;
        }
        #recoveryPasswordModal .recovery-hint {
            display: block;
            font-size: 0.8125rem;
            margin-top: 6px;
            color: var(--gray-500);
        }
        #recoveryPasswordModal .recovery-modal-footer.modal-footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        #recoveryPasswordModal .recovery-modal-footer .btn {
            min-width: 120px;
        }

        @media (max-width: 576px) {
            .login-container { padding: 12px; }
            .login-background {
                min-height: calc(100vh - 24px);
                border-radius: 16px;
                padding: 40px 12px;
            }
            .login-card {
                padding: 28px 20px 22px;
                border-radius: 14px;
            }
            .icon-badge {
                width: 80px;
                height: 80px;
                margin-top: -40px;
            }
            .icon-badge i {
                font-size: 32px;
            }
            .form-title { font-size: 21px; }
            .captcha-puzzle-wrap { max-width: 100%; }
        }

        /* === Address confirm button === */
        /* Слот заранее резервирует высоту кнопки, чтобы её появление не сдвигало
           форму (страница отцентрована — любой рост карточки двигает кнопку «Войти»
           и клик попадает мимо). Если адреса нет — плавно схлопывается. */
        .addr-slot {
            min-height: 73px; /* высота .addr-confirm-btn + её margin-top */
            overflow: hidden;
            transition: min-height 0.35s ease;
        }
        .addr-slot--collapsed {
            min-height: 0;
        }
        .addr-slot-skeleton {
            height: 63px;
            margin-top: 10px;
            border-radius: 12px;
            background: linear-gradient(100deg, #eef0f4 40%, #f7f8fa 50%, #eef0f4 60%);
            background-size: 200% 100%;
            animation: addrSkeletonShimmer 1.4s ease-in-out infinite;
        }
        @keyframes addrSkeletonShimmer {
            from { background-position: 120% 0; }
            to   { background-position: -80% 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .addr-slot { transition: none; }
            .addr-slot-skeleton { animation: none; }
        }

        .addr-confirm-btn {
            display: flex;
            width: 100%;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 13px 18px;
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-family: inherit;
            cursor: pointer;
            margin-top: 10px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            animation: addrConfirmIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        @keyframes addrConfirmIn {
            from { opacity: 0; transform: translateX(10px) scale(0.95); }
            to   { opacity: 1; transform: translateX(0) scale(1); }
        }

        .addr-confirm-btn::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -100%;
            width: 40%;
            height: 200%;
            background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
            transition: left 0.55s;
        }

        .addr-confirm-btn:hover::after { left: 160%; }

        .addr-confirm-btn:hover {
            background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
            box-shadow: 0 8px 24px rgba(79, 70, 229, 0.38);
            transform: translateY(-2px);
        }

        .addr-confirm-btn:active {
            transform: translateY(0) scale(0.985);
        }

        .addr-confirm-label {
            font-size: 15px;
            font-weight: 700;
            line-height: 1.2;
        }

        .addr-confirm-addr {
            font-size: 13px;
            font-weight: 400;
            opacity: 0.75;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        @media (prefers-reduced-motion: reduce) {
            .balloon,
            .balloon::after,
            .breathe-circle,
            .circle-decorator,
            .icon-badge {
                animation: none !important;
            }
            .balloon { opacity: 0 !important; }
        }
