/**
 * Custom Registration Form Styles
 * Styles for password visibility toggle and form enhancements
 */

/* Password toggle icons styling */
.woocommerce-password-toggle,
.show-password-input,
.password-toggle {
    cursor: pointer !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #666;
    font-size: 16px;
    line-height: 1;
    padding: 5px;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.woocommerce-password-toggle:hover,
.show-password-input:hover,
.password-toggle:hover {
    color: #333 !important;
}

/* Ensure password input containers have relative positioning */
.woocommerce-form-row .password-input,
.form-row .password-input,
.woocommerce-form-row:has(input[name="password"]),
.woocommerce-form-row:has(input[name="confirm_password"]) {
    position: relative;
}

/* Add padding to password inputs to make room for the icon */
input[name="password"],
input[name="confirm_password"] {
    padding-right: 40px !important;
}

/* Phone number field styling */
input[name="phone"] {
    width: 100%;
}

/* Phone validation message styling */
.phone-validation-message {
    color: #e74c3c !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block;
}

/* WooCommerce error notices styling */
.fore-golf-custom-register .woocommerce-notices-wrapper {
    margin-bottom: 1rem;
}

.fore-golf-custom-register .woocommerce-error,
.fore-golf-custom-register .woocommerce-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: block !important;
    visibility: visible !important;
}

.fore-golf-custom-register .woocommerce-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.fore-golf-custom-register .woocommerce-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Ensure notices are visible and not hidden by theme styles */
.fore-golf-custom-register .woocommerce-notices-wrapper .woocommerce-error,
.fore-golf-custom-register .woocommerce-notices-wrapper .woocommerce-message {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
