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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    color: #2563eb;
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-login {
    background-color: #3b82f6;
    color: white;
}

.btn-recover {
    background-color: #DC143C;
    color: white;
}

.btn-register {
    background-color: #10b981;
    color: white;
}

.link-recovery {
    color: #6b7280;
    text-decoration: underline;
}

.main {
    padding: 2rem 5%;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background-color: white;
    color: #2563eb;
    font-weight: 700;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.features {
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature h4 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

.footer {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h4 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f3f4f6;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #6b7280;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #f3f4f6;
}

/* Иконки Font Awesome (подключить в head) */
.fab {
    font-family: 'Font Awesome 5 Brands' !important;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.auth-form {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

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

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #064e3b;
    border: 1px solid #059669;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: #4b5563;
}

.auth-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}

.dashboard {
    display: flex;
    min-height: 100vh;
    background-color: #f3f4f6;
}

.sidebar {
    width: 280px;
    background-color: #1f2937;
    color: white;
    padding: 2rem 1rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #374553;
}

.user-profile h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.user-profile p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu a {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: block;
}

.nav-menu a:hover {
    background-color: #374151;
    color: white;
}

.nav-menu a.active {
    background-color: #3b82f6;
    color: white;
}

.content {
    flex: 1;
    padding: 2rem;
}

.stats-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-item .label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* Базовые настройки и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* CSS-переменные для унификации */
:root {
    --primary: #4a6cf7;
    --primary-hover: #3a56c7;
    --danger: #e53e3e;
    --success: #2f855a;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #94a3b8;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Контейнер админ-панели */
.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Шапка панели */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 24px;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Навигация */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--white);
    color: #333;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    outline: none;
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Иконки в навигации (если используются) */
.nav-link svg {
    width: 18px;
    height: 18px;
}

/* Основной контент */
.content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.content-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-300);
    background-color: #f8fafc;
}

.content-body {
    padding: 24px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .admin-logo {
        font-size: 1.3rem;
    }

    .admin-nav {
        justify-content: center;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .admin-panel {
        padding: 12px;
    }

    .content-body {
        padding: 16px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 120px;
        text-align: center;
    }
}

/* Состояние загрузки */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::before {
    content: 'Загрузка...';
    color: var(--gray-400);
    font-style: italic;
}

/* Кнопки (если нужны внутри контента) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

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

.btn-danger:hover {
    background-cxxolor: #c53030;
}