.onemp-signup-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.onemp-signup-form .form-group {
    margin-bottom: 20px;
}

.onemp-signup-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.onemp-signup-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.onemp-signup-form .password-input-group {
    position: relative;
}

.onemp-signup-form .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onemp-signup-form .toggle-password:hover {
    color: #333;
}
.onemp-signup-form .toggle-password i {
    font-size: 16px;
}

.onemp-signup-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.onemp-signup-form .checkbox-label input[type="checkbox"] {
    margin: 0;
}

.onemp-signup-form .form-control.is-valid {
    border-color: #28a745;
}

.onemp-signup-form .form-control.is-invalid {
    border-color: #dc3545;
}

.onemp-signup-form .invite-code-feedback,
.onemp-signup-form .email-feedback {
    font-size: 0.875em;
    margin-top: 5px;
}

.onemp-signup-form .form-messages {
    margin-top: 20px;
}

.onemp-signup-form .success-message {
    color: #28a745;
    padding: 10px;
    background-color: #d4edda;
    border-radius: 4px;
}

.onemp-signup-form .error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
}

.onemp-activation-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.onemp-activation-message {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 1.1em;
}

.onemp-activation-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.onemp-activation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.onemp-activation-actions {
    margin-top: 20px;
}

.onemp-activation-actions .button {
    padding: 10px 20px;
    font-size: 1.1em;
}

/* Form validation styles */
.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Form feedback styles */
.invite-code-feedback,
.email-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Input validation states */
.is-valid {
    border-color: #28a745 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Resend activation form styles */
.onemp-resend-activation {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.onemp-resend-activation h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.onemp-resend-activation p {
    margin-bottom: 20px;
    color: #666;
}

.onemp-resend-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.onemp-resend-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.onemp-resend-form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.onemp-resend-form .form-actions {
    margin-top: 20px;
}

.onemp-resend-form .button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.onemp-resend-form .button:hover {
    background-color: #005a87;
}

.onemp-resend-form .button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.resend-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.resend-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.resend-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   LOADING INDICATOR STYLES
   ======================================== */

/**
 * Generic Loading Overlay
 * 
 * Usage: Create a div with id="loading-overlay" and add a child div with class="spinner"
 * Example HTML:
 * <div id="loading-overlay">
 *   <div class="spinner"></div>
 * </div>
 * 
 * JavaScript usage:
 * - Show: document.getElementById('loading-overlay').style.display = 'flex';
 * - Hide: document.getElementById('loading-overlay').style.display = 'none';
 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/**
 * Spinner Element
 * 
 * A circular loading spinner with rotating animation.
 * Automatically animates when placed inside #loading-overlay
 */
#loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/**
 * Spinner Animation
 * 
 * Creates a smooth 360-degree rotation effect for the spinner.
 * Duration: 1 second, repeats infinitely
 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide password creation fields at checkout */
.woocommerce-account-fields,
.create-account,
#account_password,
.woocommerce-form-login__password {
  display: none !important;
}
