
    /* CSS Variables for Theming */
    :root {
        /* Colors - Light Theme */
        --primary-color: #2563eb;
        --primary-dark: #1d4ed8;
        --secondary-color: #64748b;
        --accent-color: #5fbe19;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --text-light: #94a3b8;
        --bg-white: #ffffff;
        --bg-gray: #f8fafc;
        --bg-dark: #1e293b;
        --border-color: #e2e8f0;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        --radius: 8px;
        --transition: all 0.3s ease;

        /* Layout */
        --header-height: 70px;
        --container-width: 1200px;
    }

    /* Dark Theme */
    [data-theme="dark"] {
        --primary-color: #3b82f6;
        --primary-dark: #2563eb;
        --secondary-color: #94a3b8;
        --accent-color: #65d32e;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-light: #94a3b8;
        --bg-white: #1e293b;
        --bg-gray: #0f172a;
        --bg-dark: #020617;
        --border-color: #334155;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        height: 100%;
    }

    body {
        font-family: 'Arial', 'Helvetica', sans-serif;
        line-height: 1.6;
        color: var(--text-primary);
        background-color: var(--bg-white);
        transition: var(--transition);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    a {
        text-decoration: none;
        color: inherit;
        transition: var(--transition);
    }

    ul {
        list-style: none;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .container {
        width: 100%;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 15px;
    }

    /* Theme Toggle */
    .theme-toggle {
        position: relative;
        width: 60px;
        height: 30px;
        background: var(--border-color);
        border-radius: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 0 5px;
        margin-left: 15px;
        border: none;
    }

    .theme-toggle::before {
        content: '🌙';
        position: absolute;
        left: 5px;
        font-size: 14px;
    }

    .theme-toggle::after {
        content: '☀️';
        position: absolute;
        right: 5px;
        font-size: 14px;
    }

    .theme-toggle-handle {
        width: 22px;
        height: 22px;
        background: var(--primary-color);
        border-radius: 50%;
        transition: transform 0.3s ease;
        transform: translateX(0);
    }

    [data-theme="dark"] .theme-toggle-handle {
        transform: translateX(30px);
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        border: none;
        border-radius: var(--radius);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition);
        font-size: 0.95rem;
    }

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

    .btn-primary:hover {
        background-color: #4da814;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-secondary {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

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

    .btn-large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    /* Header Styles */
    .header {
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: var(--header-height);
        transition: var(--transition);
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: var(--header-height);
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 46px;
        margin-right: 10px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .language-switcher {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .language-switcher img {
        width: 32px;
        height: 24px;
        border-radius: 4px;
        cursor: pointer;
        transition: var(--transition);
    }

    .language-switcher img:hover {
        transform: scale(1.1);
    }

    .help-link img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .help-link:hover img {
        transform: scale(1.1);
    }

    /* Main Content */
    .main-content {
        flex: 1;
        padding-top: var(--header-height);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - var(--header-height));
        background: var(--bg-gray);
        flex-direction: column;
    }

    .auth-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
    }

    .auth-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .auth-card {
        background: var(--bg-white);
        padding: 3rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
        width: 100%;
    }

    .auth-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .auth-header p {
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
        position: relative;
    }

    .form-input {
        width: 100%;
        padding: 12px 16px 12px 45px;
        border: 2px solid var(--border-color);
        border-radius: var(--radius);
        font-size: 1rem;
        transition: var(--transition);
        background: var(--bg-white);
        color: var(--text-primary);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(95, 190, 25, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-light);
    }

    .input-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        color: var(--text-light);
        z-index: 1;
    }

    .error-message {
        color: #dc2626;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block;
    }

    .auth-links {
        text-align: center;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .auth-links a {
        color: var(--primary-color);
        font-weight: 600;
        transition: var(--transition);
    }

    .auth-links a:hover {
        color: var(--accent-color);
    }

    /* Divider Styles */
    .divider {
        display: flex;
        align-items: center;
        margin: 2rem 0;
        color: var(--text-light);
    }

    .divider-line {
        flex: 1;
        height: 1px;
        background-color: var(--border-color);
    }

    .divider-text {
        padding: 0 1rem;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    /* OAuth Buttons */
    .oauth-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .oauth-btn {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border: 2px solid var(--border-color);
        border-radius: var(--radius);
        text-decoration: none;
        color: var(--text-primary);
        transition: var(--transition);
        background: var(--bg-white);
    }

    .oauth-btn:hover {
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

    .oauth-icon {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .oauth-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .yandex-btn:hover {
        border-color: #ffcc00;
    }

    .google-btn:hover {
        border-color: #4285f4;
    }

    /* App Downloads */
    .app-downloads {
        background: var(--bg-white);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: 2rem;
    }

    .download-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .download-btn {
        display: inline-block;
        transition: var(--transition);
    }

    .download-btn:hover {
        transform: translateY(-2px);
    }

    .download-btn img {
        height: 40px;
        width: auto;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background-color: var(--bg-white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        width: 90%;
        max-width: 500px;
        padding: 2rem;
        position: relative;
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        color: var(--text-primary);
    }

    .modal-body {
        margin-bottom: 1.5rem;
    }

    .modal-body p {
        margin-bottom: 1rem;
        color: var(--text-secondary);
    }

    .modal-body ul {
        list-style-type: disc;
        margin-left: 1.5rem;
        color: var(--text-secondary);
    }

    .modal-body li {
        margin-bottom: 0.5rem;
    }

    .modal-footer {
        text-align: center;
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-light);
        cursor: pointer;
        transition: var(--transition);
    }

    .modal-close:hover {
        color: var(--text-primary);
    }

    /* Footer */
    .footer {
        background-color: var(--bg-dark);
        color: var(--text-light);
        padding: 2rem 0;
        text-align: center;
        margin-top: auto;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .footer-links a {
        color: var(--text-light);
        transition: var(--transition);
    }

    .footer-links a:hover {
        color: var(--accent-color);
    }

    .copyright {
        color: var(--text-light);
        font-size: 0.9rem;
    }

    /* Cookies */
    .cookies {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        color: var(--text-light);
        padding: 15px 0;
        z-index: 1001;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .cookies-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 15px;
        gap: 20px;
    }

    .cookies-text {
        flex: 1;
        font-size: 0.9rem;
    }

    .cookies-text a {
        color: var(--accent-color);
        text-decoration: underline;
    }

    .cookies-close {
        background-color: var(--accent-color);
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: var(--radius);
        cursor: pointer;
        font-weight: bold;
        transition: var(--transition);
        white-space: nowrap;
    }

    .cookies-close:hover {
        background-color: #4da814;
    }

    /* Security Styles */
    .form-blocked {
        opacity: 0.7;
        pointer-events: none;
    }

    .form-blocked .form-input {
        background-color: var(--bg-gray);
    }

    .form-blocked .btn-primary {
        background-color: var(--secondary-color);
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
        .auth-card {
            padding: 2rem;
            margin: 0 1rem;
        }

        .auth-header h1 {
            font-size: 1.75rem;
        }

        .footer-links {
            flex-direction: column;
            gap: 1rem;
        }

        .cookies-container {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }

        .header-actions {
            gap: 10px;
        }

        .download-buttons {
            gap: 1rem;
        }

        .download-btn img {
            height: 35px;
        }
    }

    @media (max-width: 480px) {
        .auth-card {
            padding: 1.5rem;
        }

        .auth-header h1 {
            font-size: 1.5rem;
        }

        .header-actions {
            gap: 8px;
        }

        .language-switcher img,
        .help-link img {
            width: 28px;
            height: 28px;
        }

        .theme-toggle {
            width: 50px;
            height: 25px;
            margin-left: 10px;
        }

        .theme-toggle-handle {
            width: 18px;
            height: 18px;
        }

        [data-theme="dark"] .theme-toggle-handle {
            transform: translateX(25px);
        }

        .oauth-buttons {
            gap: 0.5rem;
        }

        .oauth-btn {
            padding: 10px 12px;
            font-size: 0.9rem;
        }

        .download-buttons {
            flex-direction: column;
            gap: 0.75rem;
        }

        .download-btn img {
            height: 32px;
        }
    }
