* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
}

/* Шапка */
.top-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: #007bff;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn, .register-btn, .logout-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.register-btn {
    background: #007bff;
    color: white;
}

.logout-btn {
    background: #dc3545;
    color: white;
}

/* Основной контент */
.wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto 0;
    min-height: calc(100vh - 120px);
}

/* Левое меню */
.left-menu {
    width: 260px;
    position: fixed;
    top: 80px;
    left: calc(50% - 700px);
    background: white;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.menu-nav {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f0f2f5;
    color: #007bff;
}

/* Основная область */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Страница входа/регистрации */
.auth-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.auth-form {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-slider {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #3b902b;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3b902b;
    color: white;
}

.btn-primary:hover {
    background: #427e36;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Степпер регистрации */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.step-dot.active {
    background: #007bff;
    width: 30px;
    border-radius: 5px;
}

/* Футер */
.footer {
    background: white;
    border-top: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #007bff;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .left-menu {
        left: 20px;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

@media (max-width: 768px) {
    .left-menu {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin-top: 10px;
    }
}