:root {
            --bg-primary: #ffffff;
            --bg-secondary: #faf7fc;
            --bg-tertiary: #f5f0fa;
            --border-light: #e8ddf5;
            --border-medium: #d5c4eb;
            --text-primary: #2d1f3d;
            --text-secondary: #5c4a6e;
            --text-tertiary: #8a7899;
            --accent: #7c5cbf;
            --accent-hover: #6a4bab;
            --accent-light: #a78bcf;
            --accent-soft: #ede3f7;
            --white: #ffffff;
            --shadow-sm: 0 1px 3px rgba(90, 60, 140, 0.06);
            --shadow-md: 0 4px 16px rgba(90, 60, 140, 0.10);
            --shadow-lg: 0 8px 32px rgba(90, 60, 140, 0.14);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            
            /* Цвета для уведомлений */
            --toast-error-bg: #fff5f5;
            --toast-error-border: #feb2b2;
            --toast-error-text: #c53030;
            --toast-info-bg: #f0f4ff;
            --toast-info-border: #c3dafe;
            --toast-info-text: #2b6cb0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-sans);
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: radial-gradient(circle at 20% 30%, #faf7fc 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, #f5f0fa 0%, transparent 40%);
            background-attachment: fixed;
        }

        a {
            text-decoration: none !important;
            color: inherit;
        }

        /* ============ НАВБАР ============ */
        .navbar {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-light);
            position: sticky;
            top: 0;
            z-index: 100;
            height: 56px;
            display: flex;
            align-items: center;
        }
        .navbar-inner {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .nav-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            font-size: 18px;
            color: var(--accent);
            letter-spacing: -0.01em;
        }
        .nav-logo svg {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }
        .nav-links {
            display: flex;
            list-style: none;
            gap: 4px;
        }
        .nav-links a {
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            transition: all var(--transition);
        }
        .nav-links a:hover,
        .nav-links a.active {
            background: var(--bg-tertiary);
            color: var(--accent);
        }
        .lang-select {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-tertiary);
            background: none;
            border: 1px solid var(--border-light);
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: inherit;
        }
        .lang-select:hover {
            border-color: var(--accent-light);
            color: var(--accent);
        }

        /* ============ ФОРМА ============ */
        .main-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
        }
        .login-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-xl);
            padding: 48px 40px 40px;
            max-width: 420px;
            width: 100%;
            box-shadow: var(--shadow-lg);
            animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
            transition: box-shadow 0.3s ease;
        }
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .login-header {
            text-align: center;
            margin-bottom: 32px;
        }
        .login-logo {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #f5effb, #e8ddf5);
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            box-shadow: 0 4px 16px rgba(124, 92, 191, 0.14);
        }
        .login-logo svg {
            width: 30px;
            height: 30px;
            stroke: var(--accent);
            fill: none;
            stroke-width: 2.2;
        }
        .login-title {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 4px;
        }
        .login-subtitle {
            font-size: 14px;
            color: var(--text-tertiary);
        }

        /* ============ ОБЕРТКА ФОРМ С АНИМАЦИЕЙ ============ */
        .forms-wrapper {
            position: relative;
            overflow: hidden;
            transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .form-container {
            width: 100%;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .form-container.hidden {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transform: translateX(20px);
            pointer-events: none;
        }
        .form-container.visible {
            position: relative;
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        /* ============ ПОЛЯ ============ */
        .form-group {
            margin-bottom: 20px;
            position: relative;
        }
        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
            letter-spacing: 0.01em;
        }
        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .input-icon {
            position: absolute;
            left: 14px;
            width: 20px;
            height: 20px;
            stroke: var(--text-tertiary);
            fill: none;
            stroke-width: 2;
            pointer-events: none;
            transition: stroke var(--transition);
        }
        .form-input {
            width: 100%;
            padding: 14px 16px 14px 46px;
            font-size: 15px;
            font-family: var(--font-sans);
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--white);
            color: var(--text-primary);
            transition: all var(--transition);
            outline: none;
        }
        .form-input:focus {
            border-color: var(--accent-light);
            box-shadow: 0 0 0 4px rgba(124, 92, 191, 0.06);
        }
        .form-input:focus~.input-icon,
        .input-wrapper:focus-within .input-icon {
            stroke: var(--accent);
        }

        /* ============ ДОПОЛНИТЕЛЬНЫЕ НАСТРОЙКИ ============ */
        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            font-size: 13px;
            color: var(--text-tertiary);
        }
        .checkbox-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }
        .checkbox-wrap input {
            accent-color: var(--accent);
            width: 16px;
            height: 16px;
            cursor: pointer;
        }
        .forgot-link {
            color: var(--accent);
            font-weight: 500;
            transition: color var(--transition);
        }
        .forgot-link:hover {
            color: var(--accent-hover);
        }

        /* ============ КНОПКИ ============ */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            width: 100%;
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            border: none;
            font-family: inherit;
            transition: all var(--transition);
            letter-spacing: 0.01em;
            position: relative;
            overflow: hidden;
        }
        .btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }
        .btn-primary {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 4px 18px rgba(124, 92, 191, 0.30);
        }
        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(124, 92, 191, 0.38);
        }
        .btn-primary:active {
            transform: translateY(0) scale(0.97);
            transition: 0.1s ease;
        }
        .btn-outline {
            background: var(--white);
            color: var(--accent);
            border: 2px solid var(--border-medium);
            box-shadow: var(--shadow-sm);
            margin-top: 12px;
        }
        .btn-outline:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        /* ============ ФУТЕР ФОРМЫ ============ */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            font-size: 14px;
            color: var(--text-tertiary);
        }
        .login-footer a {
            color: var(--accent);
            font-weight: 500;
            transition: color var(--transition);
            cursor: pointer;
        }
        .login-footer a:hover {
            color: var(--accent-hover);
        }

        /* ============ КОНТЕЙНЕР УВЕДОМЛЕНИЙ ============ */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 350px;
            pointer-events: none;
        }
        .toast {
            background: var(--white);
            padding: 14px 18px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg), 0 4px 20px rgba(0,0,0,0.05);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            font-size: 14px;
            font-weight: 500;
            pointer-events: auto;
            transform: translateX(120%);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
            opacity: 0;
            border-left: 4px solid var(--accent);
        }
        .toast.toast-show {
            transform: translateX(0);
            opacity: 1;
        }
        .toast-error {
            background: var(--toast-error-bg);
            border-left-color: var(--toast-error-text);
            color: var(--toast-error-text);
        }
        .toast-info {
            background: var(--toast-info-bg);
            border-left-color: var(--toast-info-text);
            color: var(--toast-info-text);
        }
        .toast-close {
            background: none;
            border: none;
            cursor: pointer;
            color: inherit;
            opacity: 0.6;
            padding: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.2s ease;
        }
        .toast-close:hover {
            opacity: 1;
        }
        .toast-close svg {
            width: 16px;
            height: 16px;
        }

        /* ============ АДАПТИВ ============ */
        @media (max-width: 480px) {
            .login-card {
                padding: 36px 24px 32px;
                border-radius: var(--radius-lg);
            }
            .login-title {
                font-size: 22px;
            }
            .form-input {
                padding: 12px 12px 12px 40px;
                font-size: 14px;
            }
            .btn {
                padding: 13px 20px;
                font-size: 15px;
            }
            .nav-links {
                display: none;
            }
            .toast-container {
                top: 10px;
                right: 10px;
                left: 10px;
                max-width: calc(100% - 20px);
            }
        }