

/* Основные стили страницы авторизации */
.auth-page {
    display: flex;
    min-height: calc(100vh - 120px);
}

.auth-container {
    flex: 1;
    max-width: 500px;
    padding: 40px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.auth-image {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.auth-image-overlay h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.auth-image-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

/* Табы переключения */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #777;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #5fd6ea;
    border-bottom-color: #5fd6ea;
}

/* Формы */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Переключение метода входа */
.auth-method-switch {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.auth-method-btn {
    flex: 1;
    padding: 10px;
    background: #f8f9fa;
    border: none;
    font-size: 14px;
    color: #777;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-method-btn.active {
    background: #5fd6ea;
    color: #fff;
}

/* Группы полей */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #5fd6ea;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Поля с префиксом */
.input-with-prefix {
    display: flex;
    align-items: center;
}

.input-prefix {
    padding: 10px 10px 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.input-with-prefix input {
    border-radius: 0 8px 8px 0;
}

/* Поля пароля */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
}

.forgot-password:hover {
    color: #5fd6ea;
}

.password-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.password-hints span {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.password-hints span:before {
    content: '•';
    margin-right: 5px;
}

.password-hints span.valid {
    color: #28a745;
}

/* Чекбоксы */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 13px;
}

/* Кнопка отправки */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #5fd6ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Социальные кнопки */
.social-auth {
    margin-top: 30px;
    text-align: center;
}

.social-auth p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-auth p:before,
.social-auth p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e0e0e0;
}

.social-auth p:before {
    left: 0;
}

.social-auth p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #f8f9fa;
}

.social-btn img {
    width: 18px;
    height: 18px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-container {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 576px) {
    .social-buttons {
        flex-direction: column;
    }
    
    .auth-tab {
        font-size: 16px;
        padding: 10px;
    }
}