* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        }
        
        .auth-container {
            width: 100%;
            max-width: 500px;
            min-width: 400px;
            animation: fadeIn 0.5s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .auth-box {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            width: 100%;
            padding: 40px;
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
        }
        
        .auth-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 50px rgba(0,0,0,0.15);
        }
        
        .logo-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .logo-image {
            max-width: 250px;
            height: auto;
            margin: 0 auto;
            padding: 10px;
            filter: drop-shadow(0 5px 15px rgba(26, 58, 92, 0.2));
            transition: all 0.4s ease;
        }
        
        .logo-image:hover {
            transform: scale(1.05);
            filter: drop-shadow(0 8px 20px rgba(26, 58, 92, 0.3));
        }
        
        .logo-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .auth-tabs {
            display: flex;
            margin-bottom: 25px;
            border-radius: 8px;
            overflow: hidden;
            background-color: #f0f0f0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .auth-tab {
            flex: 1;
            text-align: center;
            padding: 14px;
            cursor: pointer;
            background-color: #f0f0f0;
            color: #666;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
        }
        
        .auth-tab:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #1a3a5c;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }
        
        .auth-tab.active:after {
            transform: translateX(0);
        }
        
        .auth-tab.active {
            background-color: #1a3a5c;
            color: white;
            box-shadow: 0 2px 10px rgba(26, 58, 92, 0.3);
        }
        
        .auth-tab:hover:not(.active) {
            background-color: #e6e6e6;
            color: #333;
            transform: translateY(-2px);
        }
        
        .auth-content {
            display: none;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        
        .auth-content.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
            animation: slideIn 0.4s ease-out;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        h2 {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
            font-size: 22px;
            font-weight: 600;
            position: relative;
            padding-bottom: 10px;
        }
        
        h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(to right, transparent, #1a3a5c, transparent);
        }
        
        .form-group {
            margin-bottom: 20px;
            animation: fadeInUp 0.5s ease-out;
            animation-fill-mode: both;
        }
        
        .form-group:nth-child(1) { animation-delay: 0.1s; }
        .form-group:nth-child(2) { animation-delay: 0.2s; }
        .form-group:nth-child(3) { animation-delay: 0.3s; }
        .form-group:nth-child(4) { animation-delay: 0.4s; }
        
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #555;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        input[type="email"],
        input[type="password"],
        input[type="text"] {
            width: 100%;
            padding: 14px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
            background-color: #fafafa;
        }
        
        input[type="email"]:focus,
        input[type="password"]:focus,
        input[type="text"]:focus {
            outline: none;
            border-color: #1a3a5c;
            box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
            background-color: white;
            transform: translateY(-2px);
        }
        
        .invalid {
            border-color: #ff3860;
        }
        
        .invalid:focus {
            box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1);
        }
        
        .error-message {
            color: #ff3860;
            font-size: 12px;
            margin-top: 5px;
            display: none;
            animation: shake 0.3s ease;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }
        
        .password-strength {
            margin-top: 8px;
            height: 5px;
            width: 100%;
            background-color: #eee;
            border-radius: 3px;
            overflow: hidden;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .password-strength-bar {
            height: 100%;
            width: 0%;
            transition: width 0.4s ease, background-color 0.4s ease;
            border-radius: 3px;
        }
        
        .weak {
            background-color: #ff3860;
        }
        
        .medium {
            background-color: #ffb347;
            background-image: linear-gradient(to right, #ffb347, #ffdd57);
        }
        
        .strong {
            background-color: #23d160;
            background-image: linear-gradient(to right, #23d160, #2ecc71);
        }
        
        /* Стили для выбора типа пользователя */
        .user-type-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .user-type-option {
            flex: 1;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            background-color: #f9f9f9;
        }
        
        .user-type-option:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-color: #b0c4de;
        }
        
        .user-type-option.selected {
            border-color: #1a3a5c;
            background-color: rgba(26, 58, 92, 0.05);
            box-shadow: 0 5px 15px rgba(26, 58, 92, 0.1);
        }
        
        .user-type-option i {
            font-size: 24px;
            margin-bottom: 10px;
            display: block;
            color: #1a3a5c;
        }
        
        .user-type-option .type-title {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 5px;
            color: #333;
        }
        
        .user-type-option .type-description {
            font-size: 12px;
            color: #666;
        }
        
        /* Стили для чекбоксов с соглашениями */
        .agreement-checkbox {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 6px;
            background-color: #f9f9f9;
            transition: background-color 0.3s;
        }
        
        .agreement-checkbox:hover {
            background-color: #f0f0f0;
        }
        
        .agreement-checkbox input {
            margin-top: 3px;
            margin-right: 12px;
            min-width: 18px;
            min-height: 18px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .agreement-checkbox input:hover {
            transform: scale(1.1);
        }
        
        .agreement-checkbox label {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            cursor: pointer;
            transition: color 0.3s;
            flex: 1;
        }
        
        .agreement-checkbox:hover label {
            color: #333;
        }
        
        .agreement-link {
            color: #1a3a5c;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px dashed #1a3a5c;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 5px;
        }
        
        .agreement-link:hover {
            color: #0f2740;
            border-bottom: 1px solid #0f2740;
        }
        
        /* Модальное окно для текста соглашений */
        /*.agreement-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .agreement-modal.active {
            display: flex;
            opacity: 1;
        }
        
        .agreement-content {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            transform: translateY(30px);
            transition: transform 0.4s;
            display: flex;
            flex-direction: column;
        }
        
        .agreement-modal.active .agreement-content {
            transform: translateY(0);
        }
        
        .agreement-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .agreement-header h3 {
            color: #1a3a5c;
            font-size: 22px;
            margin: 0;
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 28px;
            color: #666;
            cursor: pointer;
            transition: color 0.3s;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .close-modal:hover {
            color: #ff3860;
            background-color: #f5f5f5;
        }
        
        .agreement-body {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
            line-height: 1.6;
            color: #444;
        }
        
        .agreement-body h4 {
            color: #1a3a5c;
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .agreement-body p {
            margin-bottom: 15px;
            text-align: justify;
        }
        
        .agreement-body ul {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        
        .agreement-body li {
            margin-bottom: 8px;
        }
        
        /* Стилизация скроллбара для текста соглашений */
       /* .agreement-body::-webkit-scrollbar {
            width: 8px;
        }
        
        .agreement-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .agreement-body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        .agreement-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }*/
        
        button[type="submit"] {
            width: 100%;
            padding: 16px;
            background-color: #1a3a5c;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(26, 58, 92, 0.2);
            margin-top: 10px;
        }
        
        button[type="submit"]:hover {
            background-color: #0f2740;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(26, 58, 92, 0.3);
        }
        
        button[type="submit"]:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(26, 58, 92, 0.3);
        }
        
        button[type="submit"]:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }
        
        button[type="submit"]:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(40, 40);
                opacity: 0;
            }
        }
        
        .language-switcher {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 5px;
            z-index: 10;
        }
        
        .language-btn {
            background: rgba(26, 58, 92, 0.1);
            border: 1px solid rgba(26, 58, 92, 0.2);
            color: #1a3a5c;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .language-btn:hover {
            background: rgba(26, 58, 92, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .language-btn.active {
            background: #1a3a5c;
            color: white;
            border-color: #1a3a5c;
            box-shadow: 0 4px 8px rgba(26, 58, 92, 0.3);
        }
        
        /* Улучшения для фокуса и доступности */
        *:focus {
            outline: none;
        }
        
        button, input[type="checkbox"], .auth-tab, .user-type-option {
            outline: none;
        }
        
        /* Индикатор загрузки для отправки формы */
        .loading {
            position: relative;
            color: transparent;
        }
        
        .loading:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin-top: -10px;
            margin-left: -10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        /* Системные сообщения */
       /* .system-message {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 20px;
        }

        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .alert-danger {
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
        }

        .alert-success {
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }

        .alert ul {
            margin: 10px 0 0 20px;
            padding: 0;
        } */ 

        /* Ссылка "Забыл пароль" */
        .forgot-password-link {
            text-align: right;
            margin-bottom: 20px;
        }

        .forgot-password-link a {
            color: #1a3a5c;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

        .forgot-password-link a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        /* Модальное окно восстановления пароля */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
        }

        .modal {
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            transform: translateY(-20px);
            transition: transform 0.3s;
        }

        .modal-overlay.active .modal {
            transform: translateY(0);
        }

        .modal h3 {
            color: #1a3a5c;
            margin-bottom: 20px;
            text-align: center;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            color: #6c757d;
            cursor: pointer;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: #1a3a5c;
        }

        .modal-message {
            margin-bottom: 20px;
            color: #495057;
            line-height: 1.6;
        }
        /* Медиа-запросы */
        @media (max-width: 550px) {
            .auth-container {
                min-width: 100%;
                max-width: 100%;
            }
            
            .auth-box {
                padding: 30px 20px;
            }
            
            .user-type-selector {
                flex-direction: column;
            }
            
            .agreement-content {
                width: 95%;
                padding: 20px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 15px;
                background-color: white;
                background-image: none;
            }
            
            .auth-box {
                padding: 30px 25px;
                box-shadow: none;
                border-radius: 0;
            }
            
            .auth-box:hover {
                transform: none;
                box-shadow: none;
            }
            
            .logo-image {
                max-width: 200px;
            }
            
            .auth-tab {
                padding: 12px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 350px) {
            .auth-box {
                padding: 25px 20px;
            }
            
            .logo-image {
                max-width: 180px;
            }
            
            .auth-tab {
                padding: 10px;
                font-size: 13px;
            }
        }