/* Стили для регистрации в личном кабинете */
 .auth-container {
            max-width: 500px;
            margin: 50px auto;
            padding: 30px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .auth-header h2 {
            color: #2e7d32;
            margin-bottom: 10px;
            font-size: 24px;
        }
       
         .auth-header p {
          color: #666;
           font-size: 16px;
}
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #555;
             display: flex;
    align-items: center;
    gap: 8px;
        }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
.btn-register,
.btn-login,
.btn-reset {
    width: 100%;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-register:hover,
.btn-login:hover,
.btn-reset:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}
        .auth-links {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            color: #666;
        }
        
        .auth-links a {
            color: #4caf50;
            text-decoration: none;
             font-weight: 500;
        }
        
        .auth-links a:hover {
            text-decoration: underline;
        }
        
        .alert {
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
             display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .alert-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

.password-strength {
    margin-top: 5px;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background 0.3s;
}

.strength-weak { width: 25%; background: #f44336; }
.strength-medium { width: 50%; background: #ff9800; }
.strength-strong { width: 75%; background: #4caf50; }
.strength-very-strong { width: 100%; background: #2e7d32; }

@media (max-width: 768px) {
    .auth-container {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Новая структура шапки */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.auth-block {
    display: flex;
    align-items: center;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.auth-link i {
    font-size: 16px;
}

.auth-separator {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-left {
        order: 1;
        flex: 1;
    }
    
    .header-right {
        order: 2;
        gap: 10px;
    }
    
    .header-search {
        order: 3;
        margin: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    /* Скрываем текстовые ссылки на мобильных */
    .auth-link span {
        display: none;
    }
    
    .auth-link i {
        font-size: 20px;
    }
    
    .auth-separator {
        display: none;
    }
    
    .auth-links {
        gap: 5px;
    }
    
    .auth-link {
        padding: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-link:hover {
        background: rgba(255,255,255,0.2);
    }
}

@media (max-width: 768px) {
    .header-left .logo-text p {
        display: block;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Принудительное удаление линии для всех элементов в шапке */
.header-content,
.header-right,
.auth-block,
.auth-links {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Выравнивание блока авторизации по вертикали */
.header-content {
    display: flex;
    align-items: center; /* Выравнивание по вертикали для всех элементов */
    min-height: 80px; /* Фиксированная высота шапки для единообразия */
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.logo-img {
    height: 50px; /* Фиксированная высота логотипа */
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.logo-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.header-search {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px; /* Фиксированная высота поиска */
}

.search-input {
    height: 100%;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
}

.search-button {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.auth-block {
    display: flex;
    align-items: center;
    height: 100%;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.auth-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    height: 40px; /* Фиксированная высота кнопок */
    padding: 0 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.auth-link:hover {
    background: rgba(255,255,255,0.1);
}

.auth-link i {
    font-size: 18px;
}

/* Десктопная корзина */
.desktop-cart {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0;
}

.desktop-cart a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.desktop-cart a:hover {
    background: rgba(255,255,255,0.2);
}

/* Мобильная корзина */
.mobile-cart {
    display: none;
}

/* Убираем лишние линии */
.auth-block,
.header-right,
.auth-links {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        min-height: auto;
        padding: 10px 0;
    }
    
    .header-left {
        order: 1;
        flex: 1;
    }
    
    .header-right {
        order: 2;
        gap: 10px;
    }
    
    .header-search {
        order: 3;
        margin: 10px 0 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* На мобильных текст скрываем */
    .auth-link span {
        display: none;
    }
    
    .auth-link {
        padding: 0;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        width: 40px;
        justify-content: center;
    }
    
    .auth-link i {
        font-size: 20px;
    }
    
    .auth-separator {
        display: none;
    }
    
    .desktop-cart {
        display: none;
    }
    
    .mobile-cart {
        display: flex;
    }
}

@media (max-width: 768px) {
    .logo-text p {
        display: block;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-img {
        height: 35px;
    }
}