/* login.css - только стили для формы авторизации */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #ffffff;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-right: 0px;
}


@media (max-width: 600px) {
    .logo {
        margin-right: 0px;
        width: 160px;        
    }
}

.input-group input:focus {
    outline: none;
    border-color: #000000; 
}

.form-container {
    width: 100%;
}

.form-toggle {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.toggle-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    text-align: center; /* Центрируем текст в кнопках переключения */
}

.toggle-btn.active {
    color: #000;
    font-weight: bold;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-page input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s;
    text-align: left; 
}



.auth-page .btn {
    width: 100%;
    padding: 15px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    text-align: center; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-page .btn:hover {
    background-color: #333;
}

/* Социальная авторизация */
.social-auth-divider {
    text-align: center;
    margin: 25px 0;
    color: #666;
    font-size: 14px;
    position: relative;
}

.social-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.social-auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: center; /* Центрируем текст в соц кнопках */
}

.social-button:hover {
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.vk-button:hover {
    border-color: #4C75A3;
}

.google-button:hover {
    border-color: #4285F4;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-text {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    text-align: center;
}

.auth-page * {
    box-sizing: border-box;
}


@media (max-width: 600px) {
    .auth-page .btn {
        padding: 13px;
        font-size: 15px;
    }
    .auth-page input {
        padding: 13px;
    }

}


.agreement-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.agreement-text a {
    text-decoration: none;
    color: #000;
}