/* Стили для кнопки во время отправки */
.rcl-bttn:disabled,
.rcl-bttn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.rcl-bttn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для полей с ошибками */
.error-field {
    border-color: #ff4444 !important;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3) !important;
}

.error-field:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5) !important;
}

/* Кастомный прогрессор */
.registration-progress {
    display: none;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.registration-progress.show {
    display: block;
}

.registration-progress .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Улучшенные стили для формы регистрации */
.form-tab-rcl form {
    position: relative;
}

.form-tab-rcl form.submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

/* Стили для уведомлений */
.registration-notice {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.registration-notice.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.registration-notice.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.registration-notice.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .rcl-bttn.loading::after {
        width: 14px;
        height: 14px;
        margin: -7px 0 0 -7px;
    }
    
    .registration-progress {
        padding: 15px;
        margin: 5px 0;
    }
} 