/
vlad82098
/
PRACTIC2
Обзор
Документация
Войти
/
vlad82098
/
PRACTIC2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/styles/ProfileComponents.css
1 694 строки
33 KB
влад
first commit
19 дек 2025, 06:16
19 дек 2025, 06:16
6bb42b0
Код
Авторство
О чём код?
/* ProfileComponents.css - Темные цвета как в самом первом файле */ /* ========== CSS ПЕРЕМЕННЫЕ (ТЕМНЫЕ) ========== */ :root { /* Темные цвета как в оригинале */ --bg-primary: #1a1a2e; --bg-secondary: #16213e; --bg-card: #0f3460; --bg-light: #1e1e2e; --accent-primary: #4cc9f0; --accent-secondary: #4361ee; --accent-tertiary: #3a0ca3; --text-primary: #e2e8f0; --text-secondary: #a0aec0; --success-color: #10b981; --warning-color: #f59e0b; --border-color: #2d3748; /* Тени темные */ --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5); /* Скругления */ --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; /* Отступы */ --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; } /* ========== ОСНОВНАЯ СТРАНИЦА ПРОФИЛЯ ========== */ .profile-page { max-width: 1200px; margin: 0 auto; padding: var(--space-lg); font-family: 'Segoe UI', system-ui, sans-serif; min-height: 100vh; } /* ========== ШАПКА ПРОФИЛЯ ========== */ .profile-header { display: flex; align-items: center; gap: var(--space-xl); padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 50px); background: var(--bg-secondary); border-radius: var(--radius-xl); margin-bottom: var(--space-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .profile-avatar { width: 120px; height: 120px; border-radius: 100%; object-fit: cover; border: 2px solid var(--accent-primary); box-shadow: 0 0 20px rgba(76, 201, 240, 0.3); } .avatar-section { display: flex; align-items: center; gap: var(--space-md); } .avatar-container { position: relative; display: inline-block; } .change-avatar-btn { background: var(--accent-primary); color: white; border: none; border-radius: var(--radius-md); padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .change-avatar-btn:hover { background: var(--accent-secondary); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(76, 201, 240, 0.4); } .profile-info { flex: 1; } .profile-name { margin: 0 0 var(--space-xs) 0; font-size: 28px; font-weight: 700; color: var(--text-primary); background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .profile-email { margin: 0; color: var(--text-secondary); font-size: 16px; } /* ========== КАРТОЧКА КУРСОВ ========== */ .courses-card { background: var(--bg-secondary); border-radius: var(--radius-xl); padding: var(--space-xl); margin-bottom: var(--space-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 2px solid rgba(76, 201, 240, 0.3); } .section-header h3 { margin: 0; font-size: 22px; color: var(--text-primary); } .courses-count { color: var(--accent-primary); font-weight: 600; background: rgba(76, 201, 240, 0.1); padding: 6px 12px; border-radius: 20px; font-size: 14px; } /* ========== ОТДЕЛЬНЫЙ КУРС ========== */ .course-item { background: var(--bg-light); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md); border: 1px solid var(--border-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .course-item:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); } .course-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); } .course-title { font-size: 18px; font-weight: 600; color: var(--text-primary); } /* Статусы в темных тонах */ .course-status { padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; } .status-paid { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); } .status-unpaid { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); } .status-completed { background: rgba(67, 97, 238, 0.15); color: #4361ee; border: 1px solid rgba(67, 97, 238, 0.3); } /* Прогресс бар темный */ .progress-bar-container { margin-bottom: var(--space-lg); } .progress-bar { height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; overflow: hidden; margin-bottom: 8px; position: relative; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)); border-radius: 5px; transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden; } .progress-fill::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 2s infinite; } @keyframes shimmer { 100% { left: 100%; } } /* Кнопки курса темные */ .course-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; } .start-learning-btn-profile { padding: 10px 20px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; border: none; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; position: relative; overflow: hidden; } .start-learning-btn-profile:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .start-learning-btn-profile::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .start-learning-btn-profile:hover::before { left: 100%; } .choose-plan-btn { padding: 10px 20px; background: rgba(76, 201, 240, 0.1); color: var(--accent-primary); border: 1px solid rgba(76, 201, 240, 0.3); border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; } .choose-plan-btn:hover { background: rgba(76, 201, 240, 0.2); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2); } .download-certificate-btn-profile { padding: 10px 20px; background: rgba(16, 185, 129, 0.1); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; } .download-certificate-btn-profile:hover { background: rgba(16, 185, 129, 0.2); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); } /* ========== СЕРТИФИКАТЫ ========== */ .certificates-section { background: var(--bg-secondary); border-radius: var(--radius-xl); padding: var(--space-xl); margin-bottom: var(--space-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .certificates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); } /* Карточка сертификата темная */ .certificate-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: var(--space-lg); border: 1px solid var(--border-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .certificate-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--success-color), #34d399); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; } .certificate-card:hover { border-color: rgba(16, 185, 129, 0.5); transform: translateY(-4px); box-shadow: var(--shadow-lg); } .certificate-card:hover::before { transform: scaleX(1); } .certificate-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); } .certificate-icon { font-size: 32px; background: linear-gradient(135deg, var(--success-color), #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3)); } .certificate-badge { background: linear-gradient(135deg, var(--success-color), #34d399); color: white; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; } .certificate-badge::before { content: '✓'; font-size: 14px; } .certificate-body h4 { margin: 0 0 var(--space-md) 0; font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1.4; } .certificate-details { display: flex; flex-direction: column; gap: var(--space-sm); } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .detail-item:last-child { border-bottom: none; } .detail-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; } .detail-value { font-size: 14px; color: var(--text-primary); font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; } .detail-value.progress { color: var(--success-color); } .certificate-footer { margin-top: auto; } .download-certificate-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; } .download-certificate-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .download-certificate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .download-certificate-btn:hover::before { left: 100%; } /* Нет сертификатов темный */ .no-certificates { text-align: center; padding: var(--space-xl); background: var(--bg-light); border-radius: var(--radius-lg); border: 2px dashed var(--border-color); } .certificate-placeholder { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); opacity: 0.7; transition: opacity 0.3s ease; } .certificate-placeholder:hover { opacity: 1; } .certificate-placeholder .certificate-icon { font-size: 48px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(76, 201, 240, 0.3)); } .certificate-placeholder h4 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 600; } .certificate-placeholder p { margin: 0; color: var(--text-secondary); font-size: 14px; max-width: 300px; line-height: 1.5; } /* ========== МОДАЛЬНОЕ ОКНО КУРСА ========== */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: var(--space-md); backdrop-filter: blur(5px); } .modal-content { background: var(--bg-card); border-radius: var(--radius-xl); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; background: var(--bg-light); border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; z-index: 10; } .modal-close:hover { background: var(--accent-primary); color: white; transform: rotate(90deg); } .modal-content h2 { margin: 0; padding: var(--space-xl) var(--space-xl) var(--space-md); font-size: 24px; font-weight: 700; color: var(--text-primary); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .course-description { padding: 0 var(--space-xl); margin: 0 0 var(--space-lg) 0; color: var(--text-secondary); line-height: 1.6; font-size: 16px; } .course-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-md); padding: var(--space-lg) var(--space-xl); background: var(--bg-light); margin: var(--space-lg) var(--space-xl); border-radius: var(--radius-lg); } .stat-item { display: flex; flex-direction: column; gap: var(--space-xs); } .stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; } .stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); } .modules-section { padding: 0 var(--space-xl); margin-bottom: var(--space-xl); } .modules-section h3 { margin: 0 0 var(--space-md) 0; font-size: 20px; font-weight: 600; color: var(--text-primary); } .modules-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); } .module-item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md); background: var(--bg-light); border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: all 0.3s ease; } .module-item:hover { transform: translateX(5px); border-color: var(--accent-primary); background: rgba(76, 201, 240, 0.05); } .module-name { font-weight: 500; color: var(--text-primary); } .module-lessons { font-size: 14px; color: var(--accent-primary); font-weight: 600; background: rgba(76, 201, 240, 0.1); padding: 4px 12px; border-radius: 20px; } .modal-actions { display: flex; gap: var(--space-md); padding: var(--space-xl); border-top: 1px solid var(--border-color); background: var(--bg-light); border-radius: 0 0 var(--radius-xl) var(--radius-xl); } .purchase-btn { flex: 1; padding: 16px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .purchase-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .purchase-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .purchase-btn:hover::before { left: 100%; } .cancel-btn { flex: 1; padding: 16px; background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .cancel-btn:hover { background: var(--bg-light); border-color: var(--text-secondary); transform: translateY(-2px); } /* ========== ЛОГАУТ СЕКЦИЯ ========== */ .logout-section { text-align: center; padding: var(--space-xl); background: var(--bg-secondary); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .logout-btn { padding: 12px 24px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; position: relative; overflow: hidden; } .logout-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .logout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .logout-btn:hover::before { left: 100%; } .logout-hint { margin-top: var(--space-sm); color: var(--text-secondary); font-size: 14px; } /* ========== АДАПТИВНОСТЬ ========== */ @media (max-width: 768px) { .profile-page { padding: var(--space-md); } .profile-header { flex-direction: column; text-align: center; padding: var(--space-lg); gap: var(--space-md); } .profile-avatar { width: 120px; height: 120px; } .courses-card, .certificates-section, .logout-section { padding: var(--space-lg); } .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); } .courses-count { align-self: flex-start; } .course-info { flex-direction: column; align-items: flex-start; gap: var(--space-sm); } .course-actions { flex-direction: column; width: 100%; } .start-learning-btn-profile, .choose-plan-btn, .download-certificate-btn-profile { width: 100%; text-align: center; } .certificates-grid { grid-template-columns: 1fr; } .modal-content { padding: var(--space-lg); } .modal-actions { flex-direction: column; } .purchase-btn, .cancel-btn { width: 100%; } } /* ========== ОБЩИЕ КНОПКИ ========== */ .btn { padding: 10px 20px; border-radius: var(--radius-md); font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; } .btn:hover { transform: translateY(-2px); } .btn-primary { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; } .btn-primary:hover { box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .btn-primary:hover::before { left: 100%; } .btn-secondary { background: rgba(76, 201, 240, 0.1); color: var(--accent-primary); border: 1px solid rgba(76, 201, 240, 0.3); } .btn-secondary:hover { background: rgba(76, 201, 240, 0.2); box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2); } .btn-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.3); } .btn-success:hover { background: rgba(16, 185, 129, 0.2); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); } .btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.3); } .btn-danger:hover { background: rgba(239, 68, 68, 0.2); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); } /* ========== СТИЛИ ДЛЯ ФОРМЫ АВТОРИЗАЦИИ ========== */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary)); padding: var(--space-md); font-family: 'Segoe UI', system-ui, sans-serif; } .login-card { background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-xl); width: 100%; max-width: 400px; border: 1px solid var(--border-color); animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } .login-card h2 { text-align: center; margin: 0 0 var(--space-lg) 0; font-size: 24px; font-weight: 700; color: var(--text-primary); background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .login-form .form-group { margin-bottom: var(--space-lg); } .login-form label { display: block; margin-bottom: var(--space-xs); color: var(--text-secondary); font-weight: 500; font-size: 14px; } .login-form input[type="text"], .login-form input[type="password"] { width: 100%; padding: 12px 16px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 15px; color: var(--text-primary); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box; } .login-form input[type="text"]:focus, .login-form input[type="password"]:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2); background: var(--bg-card); } .login-form input::placeholder { color: var(--text-secondary); opacity: 0.7; } .form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); font-size: 14px; } .checkbox-label { display: flex; align-items: center; cursor: pointer; color: var(--text-secondary); transition: color 0.3s ease; } .checkbox-label:hover { color: var(--text-primary); } .checkbox-label input[type="checkbox"] { margin-right: 8px; width: 16px; height: 16px; accent-color: var(--accent-primary); cursor: pointer; } .forgot-password { color: var(--accent-primary); text-decoration: none; font-weight: 500; transition: all 0.3s ease; position: relative; padding-bottom: 2px; } .forgot-password:hover { text-decoration: underline; color: #4cc9f0; } .forgot-password::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent-primary), transparent); transition: width 0.3s ease; } .forgot-password:hover::after { width: 100%; } .login-button { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; margin-bottom: var(--space-lg); } .login-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4); } .login-button:active { transform: translateY(0); } .login-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.6s ease; } .login-button:hover::before { left: 100%; } .register-link { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border-color); } .register-link a { color: var(--accent-primary); text-decoration: none; font-weight: 600; margin-left: 5px; transition: all 0.3s ease; } .register-link a:hover { text-decoration: underline; color: #4cc9f0; } .error-message { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 12px; border-radius: var(--radius-md); margin-bottom: var(--space-lg); text-align: center; border: 1px solid rgba(239, 68, 68, 0.3); font-size: 14px; font-weight: 500; animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; } @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } .test-credentials { margin-top: var(--space-xl); padding: var(--space-lg); background: var(--bg-light); border-radius: var(--radius-lg); border: 1px solid var(--border-color); } .test-credentials h4 { margin: 0 0 var(--space-md) 0; color: var(--text-primary); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .test-credentials h4::before { content: 'ℹ️'; font-size: 14px; } .test-credentials ul { list-style: none; padding: 0; margin: 0; } .test-credentials li { margin-bottom: var(--space-sm); padding: var(--space-sm); background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: all 0.3s ease; } .test-credentials li:hover { border-color: var(--accent-primary); transform: translateX(4px); } .test-credentials li:last-child { margin-bottom: 0; } .test-credentials strong { color: var(--accent-primary); margin-right: 5px; } .test-credentials span { color: var(--text-secondary); font-size: 12px; margin-left: var(--space-sm); opacity: 0.8; } .login-logo { text-align: center; margin-bottom: var(--space-lg); } .login-logo-icon { font-size: 48px; margin-bottom: var(--space-sm); display: inline-block; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(76, 201, 240, 0.3)); } .login-card .logout-section { margin-top: var(--space-xl); padding: var(--space-lg); background: var(--bg-light); border-radius: var(--radius-lg); text-align: center; } @media (max-width: 480px) { .login-card { padding: var(--space-lg); margin: 0 var(--space-md); } .login-card h2 { font-size: 20px; } .form-options { flex-direction: column; align-items: flex-start; gap: var(--space-md); } .test-credentials { padding: var(--space-md); } .test-credentials li { font-size: 12px; } } /* ========== ИКОНКИ ========== */ .logout-icon { font-size: 18px; } .login-icon { margin-right: 8px; } /* ========== АНИМАЦИИ ========== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s ease-out; } /* ========== ПРОСТАЯ ФОРМА АВТОРИЗАЦИИ ========== */ .login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; } .login-box { background: #0f3460; border-radius: 10px; padding: 30px; width: 100%; max-width: 400px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 1px solid #2d3748; } .login-box h2 { text-align: center; color: white; margin-bottom: 20px; font-size: 24px; } .auth-tabs { display: flex; margin-bottom: 20px; background: #16213e; border-radius: 8px; padding: 4px; } .auth-tabs button { flex: 1; padding: 10px; background: none; border: none; color: #a0aec0; font-size: 16px; cursor: pointer; border-radius: 6px; transition: all 0.3s ease; } .auth-tabs button.active { background: #0f3460; color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); } .login-box input { width: 100%; padding: 12px; margin-bottom: 15px; background: #16213e; border: 1px solid #2d3748; border-radius: 6px; color: white; font-size: 16px; box-sizing: border-box; } .login-box input:focus { outline: none; border-color: #4cc9f0; } .login-box button[type="submit"] { width: 100%; padding: 12px; background: #4cc9f0; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; transition: background 0.3s ease; } .login-box button[type="submit"]:hover { background: #3a9dc7; } .error { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 10px; border-radius: 6px; margin-bottom: 15px; text-align: center; border: 1px solid rgba(239, 68, 68, 0.3); } .test-user { margin-top: 20px; padding: 15px; background: #16213e; border-radius: 6px; color: #a0aec0; font-size: 14px; text-align: center; border: 1px solid #2d3748; } .test-user p { margin: 5px 0; } .test-user strong { color: #4cc9f0; } /* ==========ЛОГАУТ ========== */ .logout-section { text-align: center; padding: 20px; margin-top: 20px; } .logout-btn { padding: 10px 20px; background: #4cc9f0; color: white; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background 0.3s ease; } .logout-btn:hover { background: #3a9dc7; } /* ========== ОСНОВНАЯ СТРАНИЦА ========== */ .profile-page { max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 100vh; } .courses-card { background: #0f3460; border-radius: 10px; padding: 20px; margin-bottom: 20px; border: 1px solid #2d3748; } .section-header { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #2d3748; } .section-header h3 { color: white; margin: 0; font-size: 20px; } .course-item { background: #16213e; border-radius: 8px; padding: 15px; margin-bottom: 15px; border: 1px solid #2d3748; } .course-title { color: white; margin: 0 0 10px 0; font-size: 18px; } .course-actions { display: flex; gap: 10px; margin-top: 15px; } .course-actions button { padding: 8px 16px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .start-learning-btn-profile { background: #4cc9f0; color: white; } .start-learning-btn-profile:hover { background: #3a9dc7; } .choose-plan-btn { background: #4361ee; color: white; } .choose-plan-btn:hover { background: #3a56d4; } .download-certificate-btn-profile { background: #10b981; color: white; } .download-certificate-btn-profile:hover { background: #0da271; } .progress-bar-container { margin: 10px 0; } .progress-bar { height: 8px; background: #2d3748; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: #4cc9f0; border-radius: 4px; transition: width 0.5s ease; } .certificates-section { background: #0f3460; border-radius: 10px; padding: 20px; margin-bottom: 20px; border: 1px solid #2d3748; } .certificates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-top: 15px; } .certificate-card { background: #16213e; border-radius: 8px; padding: 15px; border: 1px solid #2d3748; } .certificate-card h4 { color: white; margin: 0 0 10px 0; } .certificate-details p { color: #a0aec0; margin: 5px 0; font-size: 14px; } .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: #0f3460; border-radius: 10px; padding: 20px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; border: 1px solid #2d3748; } .modal-content h2 { color: white; margin-top: 0; } .modal-close { float: right; background: none; border: none; color: #a0aec0; font-size: 24px; cursor: pointer; line-height: 1; } .modal-actions { display: flex; gap: 10px; margin-top: 20px; } .purchase-btn, .cancel-btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; flex: 1; } .purchase-btn { background: #4cc9f0; color: white; } .cancel-btn { background: #2d3748; color: white; } @media (max-width: 768px) { .login-box { padding: 20px; margin: 0 10px; } .profile-page { padding: 10px; } .certificates-grid { grid-template-columns: 1fr; } .course-actions { flex-wrap: wrap; } .course-actions button { flex: 1; min-width: 120px; } }