:root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --danger: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --border-radius: 7px;
            --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        }

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

        body {
            font-family: 'Inter', Arial, sans-serif;
            background-color: #f5f7fb;
            color: var(--dark);
            line-height: 1.6;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            position: relative;
        }

        .auth-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 30px;
            width: 100%;
            max-width: 400px;
            box-shadow: var(--box-shadow);
        }

        .auth-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .auth-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .auth-subtitle {
            font-size: 14px;
            color: var(--gray);
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-size: 14px;
            color: var(--dark);
            margin-bottom: 8px;
            font-weight: 500;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 14px;
            color: var(--dark);
            margin-bottom: 0;
        }

        .checkbox-label input[type="checkbox"] {
            margin-right: 8px;
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .checkmark {
            margin-left: 5px;
            user-select: none;
        }

        input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: var(--border-radius);
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .captcha-box {
            padding: 12px 14px;
            border: 1px solid #e0e0e0;
            border-radius: var(--border-radius);
            background: var(--light);
        }

        .captcha-question {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
            color: var(--dark);
        }

        .turnstile-wrap {
            display: flex;
            justify-content: center;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 12px 20px;
            border-radius: var(--border-radius);
            font-weight: 500;
            font-size: 15px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            box-shadow: var(--box-shadow);
        }

        .error {
            color: var(--danger);
            background-color: rgba(247, 37, 133, 0.1);
            padding: 12px 15px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
            font-size: 14px;
            border-left: 3px solid var(--danger);
        }

        .code-sent {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 20px;
            text-align: center;
        }

        .code-sent strong {
            color: var(--dark);
            font-weight: 500;
        }

        .paid-only-note {
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: var(--border-radius);
            background: rgba(67, 97, 238, 0.06);
            border-left: 3px solid var(--primary);
            color: rgba(33, 37, 41, 0.85);
            font-size: 13px;
            line-height: 1.45;
        }

        .paid-only-note strong {
            color: var(--primary);
            font-weight: 600;
        }

        .lang-selector {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 20;
        }

        .lang-dropdown {
            position: relative;
            min-width: 92px;
        }

        .lang-dropdown__toggle,
        .lang-dropdown__option {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            border: 1px solid #e0e0e0;
            background: #fff;
            color: var(--dark);
            font: 700 14px/1.2 inherit;
            cursor: pointer;
            text-align: left;
        }

        .lang-dropdown__toggle {
            padding: 8px 34px 8px 10px;
            border-radius: var(--border-radius);
            position: relative;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .lang-dropdown__toggle:hover,
        .lang-dropdown__toggle:focus,
        .lang-dropdown.is-open .lang-dropdown__toggle {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
        }

        .lang-dropdown__caret {
            position: absolute;
            right: 10px;
            top: 50%;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 6px solid #6c757d;
            transform: translateY(-20%);
            pointer-events: none;
        }

        .lang-dropdown__menu {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            margin: 0;
            padding: 4px;
            list-style: none;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: var(--border-radius);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .lang-dropdown.is-open .lang-dropdown__menu {
            display: block;
        }

        .lang-dropdown__option {
            border: none;
            border-radius: 5px;
            padding: 8px 10px;
        }

        .lang-dropdown__option:hover,
        .lang-dropdown__option:focus {
            background: rgba(67, 97, 238, 0.1);
            outline: none;
        }

        .lang-dropdown__option.is-active {
            background: var(--primary);
            color: #fff;
        }

        .lang-dropdown__flag {
            display: inline-block;
            width: 20px;
            height: 14px;
            border-radius: 2px;
            flex-shrink: 0;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
        }

        .lang-dropdown__flag--ru {
            background-image: url("/assets/flags/ru.svg");
        }

        .lang-dropdown__flag--gb {
            background-image: url("/assets/flags/gb.svg");
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        @media (max-width: 480px) {
            .auth-container {
                padding: 20px;
            }

            .auth-title {
                font-size: 20px;
            }

            .lang-selector {
                top: 10px;
                right: 10px;
            }

            .lang-dropdown {
                min-width: 84px;
            }

            .lang-dropdown__toggle {
                padding: 6px 30px 6px 8px;
                font-size: 13px;
            }

            .lang-dropdown__flag {
                width: 18px;
                height: 13px;
            }
