/* Jinx User Profile - стили форм */
/* Loading bar for AJAX forms */
.loading-bar {
	display: none;
	height: 5px;
	background: linear-gradient(90deg, #D82B03, #f39c12, #2ecc71);
	animation: mm-bar 1.2s linear infinite;
	border-radius: 2px;
	opacity: .9;
}
.user-profile-form .loading-bar { margin: 10px 0; }
@keyframes mm-bar {
	0%   { background-position: 0 0; }
	100% { background-position: 200% 0; }
}

.user-profile-form {
    max-width: 400px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Подсказка (tip) по клику на ? */
.jinx-tip-wrap {
    display: inline-block;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
}
button.jinx-tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    color: #0073aa;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 50%;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s;
}
.jinx-tip-trigger:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.jinx-tip-popup {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 180px;
    max-width: 280px;
    padding: 10px 12px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    color: #1d2327;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 100;
    white-space: normal;
    text-align: left;
}
.jinx-tip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #c3c4c7;
}
.jinx-tip-popup.is-open {
    display: block;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

a.btn-secondary {
    background-color: #1D4576;
    color: white;
}

.btn-secondary:hover {
    background-color: #3164A0;
}

a.user-logout-link {
    font-size: 16px !important;
    background-color: #1D4576;
    color: white !important;
}

a.user-logout-link:hover {
    background-color: #3164A0;
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.error-message,
.success-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.user-profile-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.user-profile-info p {
    margin: 0;
    font-size: 14px;
}

.user-profile-info strong {
    color: #0073aa;
}

@media (max-width: 768px) {
    .user-profile-form {
        max-width: 100%;
        margin: 10px 0;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.alert {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-messages {
    min-height: 20px;
}

#user-login-form [type=submit],
#user-login-form button,
#user-register-form [type=submit],
#user-register-form button,
#user-forgot-password-form [type=submit],
#user-forgot-password-form button,
#mm-password-reset-form [type=submit],
#mm-password-reset-form button,
#user-change-password-form [type=submit],
#user-change-password-form button {
    width: 100%;
}

/* Кнопка входа через Яндекс ID */
.jinx-yandex-login {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.jinx-yandex-login .btn-yandex {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background-color: #fc3f1d;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}
.jinx-yandex-login .btn-yandex:hover {
    background-color: #e63514;
    color: #fff !important;
}

/* Кнопка входа через VK ID */
.jinx-vk-login {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.jinx-vk-login .btn-vk {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background-color: #2787f5;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}
.jinx-vk-login .btn-vk:hover {
    background-color: #1a6cd6;
    color: #fff !important;
}

/* Кнопка входа через Google */
.jinx-google-login {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.jinx-google-login .btn-google {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background-color: #4285f4;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}
.jinx-google-login .btn-google:hover {
    background-color: #3367d6;
    color: #fff !important;
}
