/* login.css - Стили для страницы авторизации и регистрации */

/* Специфичные стили для страницы авторизации */
.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 400px);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-form-container {
    background: var(--primary-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.auth-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-terracotta);
}

.auth-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}

.auth-tab {
    flex: 1;
    padding: 15px 0;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.auth-tab:hover {
    color: var(--accent-terracotta);
}

.auth-tab.active {
    color: var(--accent-terracotta);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-terracotta);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
    background-color: var(--secondary-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 2px rgba(199, 107, 93, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-terracotta);
    flex-shrink: 0;
}

.form-check label {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-gray);
    flex: 1;
}

.form-check a {
    color: var(--accent-terracotta);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.form-check a:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-terracotta);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    background-color: #b55a4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(199, 107, 93, 0.3);
}

.social-auth {
    margin-top: 30px;
    text-align: center;
}

.social-auth p {
    color: var(--text-gray);
    margin-bottom: 15px;
    position: relative;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.social-btn:hover {
    border-color: var(--accent-terracotta);
    background-color: var(--accent-beige);
    transform: translateY(-2px);
}

.auth-benefits {
    background: linear-gradient(135deg, var(--accent-beige) 0%, var(--secondary-bg) 100%);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-benefits h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(199, 107, 93, 0.1);
}

.benefits-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent-terracotta);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-control {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group.error .error-message {
    display: block;
}

/* Адаптивность для страницы авторизации */
@media (max-width: 1024px) {
    .auth-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .auth-form-container {
        padding: 30px;
    }
    
    .auth-benefits {
        padding: 30px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .social-buttons {
        justify-content: space-between;
    }
    
    .social-btn {
        max-width: calc(33.333% - 10px);
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .auth-benefits {
        padding: 20px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .auth-tab {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .btn-auth {
        padding: 14px;
        font-size: 15px;
    }
    
    .benefit-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .benefit-text h4 {
        font-size: 15px;
    }
    
    .benefit-text p {
        font-size: 13px;
    }
    
    .form-check {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-check a {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 360px) {
    .auth-form-container {
        padding: 15px;
    }
    
    .auth-benefits {
        padding: 15px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-btn {
        max-width: 100%;
        width: 100%;
    }
    
    .benefits-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}