/* Custom Registration Form Styles - Compatible with User Registration Plugin */

/* Password validation styling */
#hpn_register_validate {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    list-style: none;
}

#hpn_register_validate li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #dc3545;
}

#hpn_register_validate li i {
    margin-right: 8px;
    width: 16px;
}

#hpn_register_validate li.valid {
    color: #28a745;
}

#hpn_register_validate li.valid i {
    color: #28a745;
}

#hpn_register_validate li.invalid {
    color: #dc3545;
}

#hpn_register_validate li.invalid i {
    color: #dc3545;
}

/* Password toggle styling */
.show-password-input {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.show-password-input:hover {
    color: #333;
}

.show-password-input.show {
    color: #007cba;
}

/* Error styling for form fields */
.ur-frontend-field.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

/* Success and error messages */
.registration-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
    display: block;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 10px;
    display: block;
}

/* hCaptcha styling */
.h-captcha {
    margin: 20px 0;
    text-align: center;
}

/* Submit button loading state */
.ur-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ur-form-grid {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .ur-form-row {
        flex-direction: column;
    }
}


/* Password requirements positioning */
#hpn_register_validate {
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 15px 0;
}

#hpn_register_validate li {
    font-size: 13px;
    color: #dc3545;
}

#hpn_register_validate li.valid {
    color: #28a745;
}
