/* Общие стили для страниц пользователей */
.auth-page, .password-change-page, .profile-edit-page, .profile-page { 
    padding: 80px 0; 
    background: #f8f9fa;
    margin-top: 50px;
}

/* Контейнеры */
.auth-container, .form-container { 
    margin: 0 auto; 
    background: white; 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.auth-container { 
    max-width: 500px; 
}

.auth-container.login { 
    max-width: 400px; 
}

.form-container { 
    max-width: 600px; 
}

/* Заголовки */
.auth-header, .form-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.auth-header h1, .form-header h1 { 
    color: #2c3e50; 
    margin-bottom: 10px; 
}

/* Формы */
.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    font-weight: 600; 
    color: #2c3e50; 
    margin-bottom: 8px; 
    display: block; 
}

.form-control { 
    padding: 12px; 
    border: 2px solid #e9ecef; 
    border-radius: 5px; 
    width: 100%; 
}

.form-control:focus { 
    border-color: #3498db; 
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25); 
}

.form-check { 
    margin: 15px 0; 
}

.auth-link { 
    text-align: center; 
    margin-top: 20px; 
}

.modal-link,
.auth-link a {
  color: var(--primary-blue) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.modal-link:hover,
.auth-link a:hover {
  color: var(--primary-yellow) !important;
  text-decoration: none;
}

.error-message { 
    color: #e74c3c; 
    font-size: 14px; 
    margin-top: 5px; 
}

/* Профиль */
.profile-container { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    overflow: hidden; 
}

.profile-header { 
    background: #3498db; 
    color: white; 
    padding: 30px; 
    text-align: center; 
}

.profile-avatar { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    border: 4px solid white; 
    margin-bottom: 15px; 
}

.profile-content { 
    padding: 30px; 
}

.profile-info { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}

.info-item { 
    padding: 15px; 
    background: #f8f9fa; 
    border-radius: 5px; 
}

.info-item strong { 
    color: #2c3e50; 
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 0 0 auto;
    min-width: 220px;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
}

/* Стили для ссылок в формах авторизации */

@media (max-width: 576px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group .btn {
        width: 100%;
        min-width: auto;
    }
}


