/* Chroudakais Auth - Elegant Styles */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.chroudakais-custom-fields-wrapper { margin: 25px 0; font-family: "Poppins", sans-serif; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
@media (max-width: 576px) { .form-row-group { grid-template-columns: 1fr; } }


@keyframes elegantSlideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }


.chroudakais-validation-message { display: none; padding: 12px 16px; border-radius: 12px; margin-top: 10px; font-size: 14px; font-weight: 500; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.chroudakais-validation-message.show { display: block; animation: elegantFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes elegantFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.chroudakais-validation-message.error { background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%); color: #c53030; border: 1px solid #feb2b2; }
.chroudakais-validation-message.success { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #166534; border: 1px solid #86efac; }
.chroudakais-validation-message.info { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #1e40af; border: 1px solid #93c5fd; }

.chroudakais-password-strength-meter { margin-top: 15px; padding: 15px; border-radius: 12px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; }
.strength-meter-bar { height: 10px; background: #e5e7eb; border-radius: 20px; overflow: hidden; margin-bottom: 12px; }
.strength-meter-fill { height: 100%; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 20px; }
.strength-meter-fill.weak { width: 33%; background: linear-gradient(90deg, #fca5a5, #ef4444); }
.strength-meter-fill.medium { width: 66%; background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.strength-meter-fill.strong { width: 100%; background: linear-gradient(90deg, #6ee7b7, #10b981); }
.strength-meter-text { font-size: 14px; font-weight: 600; }
.strength-meter-text.weak { color: #dc2626; }
.strength-meter-text.medium { color: #ea580c; }
.strength-meter-text.strong { color: #059669; }

.password-requirements ul { margin: 10px 0 0; padding: 0; list-style: none; }
.password-requirements li { padding: 2px 4px 4px 20px; font-size: 13px; color: #64748b; position: relative; transition: all 0.3s ease; margin: 0; }
.password-requirements li:before { top: 5px; content: "○"; position: absolute; left: 0; color: #cbd5e1; font-size: 20px; line-height: 13px; transition: all 0.3s ease; }
.password-requirements li.met { color: #059669; font-weight: 500; }
.password-requirements li.met:before { content: "●"; color: #10b981; }

/* ============================================
   FIXED Loading Button Styles - No Vertical Movement
   ============================================ */
.woocommerce-form-row.woocommerce-form-row--wide {
    width: 100%;
    min-width: 100% !important;
    max-width: 100% !important;
}
/* Loading button base styles */
button.chroudakais-loading { 
    position: relative !important; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; 
    color: transparent !important; /* Hide text color */
    cursor: wait !important; 
    overflow: hidden !important;
    /* Maintain minimum height to prevent jumping */
    min-height: 44px !important;
    /* Disable all transitions during loading to prevent any movement */
    transition: none !important;
}
#customer_login {
  margin-top: 44px !important;
}
/* Hide the button text completely */
button.chroudakais-loading span {
    opacity: 0 !important;
    visibility: hidden !important;
}
/*
 Modern styles for WooCommerce login form inputs
*/
woocommerce-form__label.woocommerce-form__label-for-checkbox {
  display: none !important;
}
.wd-col.col-login .woocommerce-error {
  background-color: #f2c8c8 !important;
}
#customer_login .form-row .input-text {
    /* Spacing and Sizing */
    padding: 12px 15px;
    width: 100%;
    font-size: 16px;
    line-height: 1.5;

    /* Border and Background */
    border: 1px solid #ced4da;
    border-radius: 8px; /* Rounded corners */
    background-color: #f8f9fa; /* Light background */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075); /* Subtle inner shadow */

    /* Text and Color */
    color: #495057;

    /* Smooth Transitions */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Style for when the input is focused (clicked on) */
#customer_login .form-row .input-text:focus {
    outline: none; /* Remove default browser outline */
    border-color: #80bdff; /* Highlight color */
    background-color: #ffffff; /* White background on focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Glow effect */
}
.wd-col.col-register .woocommerce-form__label.woocommerce-form__label-for-checkbox {
  display: none;
}
/* Optional: Adjust the password reveal button position */
.password-input {
    position: relative;
}

.show-password-input {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}
.wd-registration-page {
  margin-top: 70px !important;
}
.enterprise-info-card__title {
	 display: flex !important;
  left: 5px !important;
  position: relative!important;
}
/* Create spinner using a fixed position approach */
button.chroudakais-loading::after {
    content: "" !important;
    position: absolute !important;
    /* Use calc to ensure exact center */
    left: calc(50% - 10px) !important;
    top: calc(50% - 10px) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-top-color: white !important;
    border-radius: 50% !important;
    /* Animation without any transform on the element itself */
    animation: spinOnly 0.8s linear infinite !important;
    /* Ensure spinner stays in place */
    transform-origin: center center !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Pure rotation animation - NO vertical transforms */
@keyframes spinOnly {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alternative: inline spinner for text + spinner */
button.chroudakais-loading.with-text::after {
    left: auto !important;
    right: 15px !important;
    top: calc(50% - 10px) !important;
}

/* Keep text visible for with-text variant */
button.chroudakais-loading.with-text {
    color: white !important;
    padding-right: 45px !important;
}

button.chroudakais-loading.with-text span {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure WooCommerce compatibility */
.woocommerce button.chroudakais-loading,
.woocommerce-page button.chroudakais-loading,
.woocommerce input[type="submit"].chroudakais-loading,
.woocommerce-page input[type="submit"].chroudakais-loading {
    position: relative !important;
    min-height: 44px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    button.chroudakais-loading::after {
        width: 16px !important;
        height: 16px !important;
        left: calc(50% - 8px) !important;
        top: calc(50% - 8px) !important;
        border-width: 2px !important;
    }
    
    button.chroudakais-loading {
        min-height: 40px !important;
    }
}

/* High specificity override for any theme conflicts */
body .woocommerce button.chroudakais-loading::after,
body .woocommerce-page button.chroudakais-loading::after {
    animation: spinOnly 0.8s linear infinite !important;
    position: absolute !important;
}

.chroudakais-form-message { padding: 18px 24px; margin: 25px 0; border-radius: 15px; font-weight: 500; font-size: 15px; position: relative; animation: messageSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.chroudakais-form-message.success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border: 1px solid #6ee7b7; }
.chroudakais-form-message.error { background: linear-gradient(135deg, #ffdf3d 0%, #ffffff 100%); color: #7f1d1d; border: 1px solid #f87171; }
@keyframes messageSlide { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

input.chroudakais-error { border-color: #ef4444 !important; background: #fff5f5 !important; }
select#account_type { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.grecaptcha-badge { visibility: hidden !important; }
.chroudakais-recaptcha-notice { font-size: 11px; color: #64748b; margin-top: 10px; text-align: center; }
.chroudakais-recaptcha-notice a { color: #6366f1; text-decoration: none; }
.chroudakais-recaptcha-notice a:hover { text-decoration: underline; }
#chroudakais-resend-verification { cursor: pointer; text-decoration: underline; color: #6366f1; }


/* reCAPTCHA Badge Visibility Fix */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 99999 !important;
    position: fixed !important;
    bottom: 14px !important;
    right: 14px !important;
}
#customer_login {
  max-width: 420px;
  margin: 40px auto;
  margin-bottom: 40px;
  padding: 10px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(34, 55, 112, 0.12), 0 2px 4px rgba(34, 55, 112, 0.06);
  color: #253858;
}
a.chroudakais-forgot-password-link {
    margin-top: 10px;
    position: relative;
    display: block;
}
.success-checkmark {
  display: none!important;
}
.wd-col.col-register .chroudakais-form-toggle.initialized {
    display: none !important;
}
.chroudakais-form-toggle.initialized {
    width: 100% !important;
}
a.woocommerce-LostPassword.lost_password {
    display:none!important;
}
.wd-registration-page.wd-register-tabs {
  margin-top: 44px;
}

.woocommerce-ResetPassword.lost_reset_password p {
    width: 100% !important;
}
.verification-container img {
    display: none!important;
}
a.btn.wd-switch-to-register {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border-color: #a88734 #9c7e31 #846a29;
    color: #111;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    transition: all 0.1s 
ease;
    margin-top: 10px;
}
/* Hide badge only if explicitly disabled */
.grecaptcha-badge.hidden {
    display: none !important;
}

/* reCAPTCHA v2 Checkbox Container */
.chroudakais-recaptcha-container,
.chroudakais-recaptcha-v2 {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    min-height: 78px;
    clear: both;
}

/* reCAPTCHA Notice */
.chroudakais-recaptcha-notice {
    margin: 15px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.chroudakais-recaptcha-notice a {
    color: #4285f4;
    text-decoration: none;
}

.chroudakais-recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Ensure forms have proper spacing with reCAPTCHA */
.woocommerce form .form-row {
    position: relative;
}

/* Force badge visibility on WooCommerce pages */
body.woocommerce-account .grecaptcha-badge,
body.woocommerce-checkout .grecaptcha-badge {
    visibility: visible !important;
    display: block !important;
}

/* Amazon-style Form Toggle */
.chroudakais-form-toggle {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.chroudakais-form-toggle .form-toggle-text {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.chroudakais-form-toggle .toggle-link {
    color: #0066c0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.chroudakais-form-toggle .toggle-link:hover {
    color: #c45500;
    border-bottom-color: #c45500;
}

/* Form Width Settings - Make forms wider */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 100%;
    margin: 0 auto;
}

/* Single form display - comfortable width */
body.chroudakais-amazon-mode .woocommerce .col-1,
body.chroudakais-amazon-mode .woocommerce .u-column1,
body.chroudakais-amazon-mode #customer_login .col-1,
body.chroudakais-amazon-mode #customer_login .u-column1,
body.chroudakais-amazon-mode .woocommerce .col-2,
body.chroudakais-amazon-mode .woocommerce .u-column2,
body.chroudakais-amazon-mode #customer_login .col-2,
body.chroudakais-amazon-mode #customer_login .u-column2 {
    width: 100% !important;
    max-width: 600px !important;  /* Increased from 400px */
    margin: 0 auto !important;
    float: none !important;
    padding: 0 20px !important;
}

/* Default dual form display - make both wider */
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce .u-columns .u-column1,
.woocommerce .u-columns .u-column2 {
    width: 48% !important;
    max-width: 500px !important;  /* Set max width for each column */
}

/* Container for dual forms */
.woocommerce .col2-set,
.woocommerce .u-columns,
#customer_login {
    max-width: 1100px !important;  /* Wider container for two forms */
    margin: 0 auto !important;
}

/* Make form fields full width within their container */
.woocommerce form .form-row {
    margin: 0 0 20px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    padding: 12px 5px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce .col2-set .col-1,
    .woocommerce .col2-set .col-2,
    .woocommerce .u-columns .u-column1,
    .woocommerce .u-columns .u-column2,
    body.chroudakais-amazon-mode .woocommerce .col-1,
    body.chroudakais-amazon-mode .woocommerce .u-column1,
    body.chroudakais-amazon-mode #customer_login .col-1,
    body.chroudakais-amazon-mode #customer_login .u-column1 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .woocommerce .col2-set,
    .woocommerce .u-columns,
    #customer_login {
        max-width: 900px !important;
    }
}

/* Large screens - comfortable width */
@media (min-width: 1025px) {
    body.chroudakais-amazon-mode .woocommerce .col-1,
    body.chroudakais-amazon-mode .woocommerce .u-column1,
    body.chroudakais-amazon-mode #customer_login .col-1,
    body.chroudakais-amazon-mode #customer_login .u-column1,
    body.chroudakais-amazon-mode .woocommerce .col-2,
    body.chroudakais-amazon-mode .woocommerce .u-column2,
    body.chroudakais-amazon-mode #customer_login .col-2,
    body.chroudakais-amazon-mode #customer_login .u-column2 {
        max-width: 650px !important;  /* Even wider on large screens */
    }
}

/* Form Animation */
.woocommerce-form-register,
.woocommerce-form-login {
    animation: fadeInForm 0.3s ease;
}

@keyframes fadeInForm {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}


/* Amazon-style button with better sizing */
.woocommerce-account form.login .button,
.woocommerce-account form.register .button {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border-color: #a88734 #9c7e31 #846a29;
    color: #111;
    width: 100%;
    padding: 14px 20px;  /* More padding for better click target */
    font-size: 16px;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-top: 10px;
}

.woocommerce-account form.login .button:hover,
.woocommerce-account form.register .button:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

/* Better spacing for form elements */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 100% !important;
}

.woocommerce form .form-row-wide {
    clear: both;
    width: 100% !important;
}

/* Professional fields section */
/*
 * Minimalist & Modern Styles for Professional Information Form
 * Blends with the page background, uses minimal height.
 * Author: @Copilot
 * Version: 3.0
 */

/* --- Main Container: Transparent background, minimal shadow --- */
#professional_fields {
    background-color: transparent; /* Removed the background color */
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 2.5rem 2.5rem;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    /* A more subtle shadow since there's no background */
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.03), 0 2px 8px -4px rgba(0, 0, 0, 0.03);
}

/* The gradient top border remains for a touch of brand color */
#professional_fields::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- Section Title --- */
#professional_fields h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* --- Subsection Title (e.g., "Adresse de l'entreprise") --- */
#professional_fields .professional-address-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

/* --- Form Field Labels --- */
#professional_fields label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 8px;
    display: inline-block;
}
#professional_fields label .required {
    color: #7c3aed;
}

/* --- General Input & Select Styling: Minimal height & transparent background --- */
#professional_fields .input-text,
#professional_fields .select2-selection--single {
    background-color: transparent; /* Removed input background */
    border: 1px solid #d1d5db;
    border-radius: 8px !important;
    padding: 10px 15px; /* Slightly reduced padding for a smaller feel */
    height: auto !important; /* MINIMAL HEIGHT: Removed fixed height */
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-size: 1rem;
    color: #1f2937;
}

/* --- Input Focus State: Adds a white background on focus for clarity --- */
#professional_fields .input-text:focus {
    border-color: #7c3aed;
    background-color: #ffffff; /* Add background back on focus */
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    outline: none;
}

/* --- Select2 Dropdown Styling: Adapted for minimal height --- */
#professional_fields .select2-container--default .select2-selection--single {
    padding: 0;
}
#professional_fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f2937;
    line-height: normal; /* Use normal line height */
    padding: 8px 15px; /* Control height via padding */
}
#professional_fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important; /* Arrow adapts to container height */
    right: 5px !important;
    display: flex;
    align-items: center;
}
#professional_fields .select2-container--default.select2-container--open .select2-selection--single,
#professional_fields .select2-container--default:focus .select2-selection--single {
    border-color: #7c3aed !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* --- Grouped Fields (Postcode/City, SIRET/VAT) --- */
#professional_fields .form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
#professional_fields .form-row-group .form-row {
    margin-top: 0;
}

/* --- General WooCommerce Form Row Adjustments --- */
#professional_fields .form-row {
    padding: 0;
    margin-bottom: 1.5rem;
}

/* --- Address Line 2 --- */
#professional_fields input[name="company_street2"] {
    margin-top: -1.25rem;
}
#professional_fields input[name="company_street2"]::placeholder {
    font-size: 0.9rem;
}
/* Password strength meter */
#password-strength-meter {
    margin-top: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

/* Divider between forms */
.chroudakais-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.chroudakais-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.chroudakais-divider span {
    background: #fff;
    padding: 0 20px;
    position: relative;
    color: #767676;
    font-size: 12px;
    text-transform: uppercase;
}

/* Forgot Password Link Styles */
.chroudakais-forgot-password {
    text-align: center;
    margin-top: 15px;
}

.chroudakais-forgot-password a {
    color: #0066c0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.chroudakais-forgot-password a:hover {
    color: #c45500;
    text-decoration: underline;
}


/* Spinner for loading state - FIXED VERSION */
.chroudakais-submit-btn .spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: spinOnly 0.8s linear infinite !important;
    margin-right: 8px !important;
    /* Critical fix for vertical stability */
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    /* Ensure no transform interference */
    transform-origin: center center !important;
}


/* Password strength meter in modal */
.chroudakais-modal .chroudakais-password-strength-meter {
    margin-top: 12px;
}

.chroudakais-modal .strength-meter-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.chroudakais-modal .strength-meter-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.chroudakais-modal .strength-meter-fill.weak {
    background-color: #ef4444;
}

.chroudakais-modal .strength-meter-fill.medium {
    background-color: #f59e0b;
}

.chroudakais-modal .strength-meter-fill.strong {
    background-color: #10b981;
}

.chroudakais-modal .strength-meter-fill.very-strong {
    background-color: #2563eb;
}

.chroudakais-modal .strength-meter-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}


/* The main container for the section */
.account-creation-section {
background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  max-width: 550px;
  width: 100%;
  margin: 0rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-creation-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Heading style */
.account-creation-section .title-3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 13px 0;  /* ✅ Combined margin */
  display: block ruby;
  word-break: inherit;
}
/* Utility class for centering text */
.account-creation-section .txt-c {
  text-align: center;
}

/* Paragraph styling */
.account-creation-section p {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #4a5568; /* Softer text color */
  margin: 0!important;
}

/* List styling for a clean, modern look */
.account-creation-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-creation-section li {
  font-size: 1rem;
  color: #2d3748;
  margin-bottom:0;
  display: flex;
  align-items: center;
}
p.txt-cc {
  margin-bottom: 12px !important;
}
/* Custom list icon for an elegant touch */
.account-creation-section li::before {
  content: '✔'; /* A simple checkmark */
  color: #28a745; /* A pleasant green color */
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0; /* Prevents the icon from shrinking */
}

/* Remove margin from the last paragraph and list item */
.account-creation-section p:last-of-type {
    margin-bottom: 1.25rem;
}
.account-creation-section li:last-child {
  margin-bottom: 0;
}
/* ============================================
   MODERN PASSWORD RESET SYSTEM STYLES
   Added: 2025 - Enhanced UI/UX
   ============================================ */

/* Reset and base styles */
.chroudakais-modal * {
  box-sizing: border-box;
}

/* Modal overlay */
.chroudakais-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.chroudakais-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Modal content */
.chroudakais-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal header */
.chroudakais-modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chroudakais-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chroudakais-modal-title svg {
  color: #6366f1;
  flex-shrink: 0;
}

.chroudakais-modal-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

/* Close button */
.chroudakais-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chroudakais-modal-close:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.chroudakais-modal-close:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.chroudakais-modal-close svg {
  color: #6b7280;
}

/* Modal body */
.chroudakais-modal-body {
  padding: 24px;
}

/* Form styles */
.chroudakais-form-description {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-row .required {
  color: #ef4444;
}

.input-text {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-text:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-text:hover {
  border-color: #9ca3af;
}

.input-text::placeholder {
  color: #9ca3af;
}

/* Message styles */
.chroudakais-message {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chroudakais-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.chroudakais-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Button styles */
.chroudakais-submit-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  background-color: #6366f1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.chroudakais-submit-btn:hover {
  background-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.chroudakais-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.chroudakais-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Back to login link */
.chroudakais-back-to-login {
  margin: 20px 0 0;
  text-align: center;
}

.chroudakais-back-to-login a {
  font-size: 14px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chroudakais-back-to-login a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
  .chroudakais-modal {
    padding: 16px;
  }
  
  .chroudakais-modal-content {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .chroudakais-modal-header {
    padding: 20px 20px 0;
  }
  
  .chroudakais-modal-title h3 {
    font-size: 18px;
  }
  
  .chroudakais-modal-body {
    padding: 20px;
  }
  
  .chroudakais-form-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .input-text {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  .chroudakais-submit-btn {
    padding: 14px 24px;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .chroudakais-modal-header {
    padding: 16px 16px 0;
  }
  
  .chroudakais-modal-body {
    padding: 16px;
  }
  
  .chroudakais-modal-title {
    gap: 8px;
  }
  
  .chroudakais-modal-title svg {
    width: 24px;
    height: 24px;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .chroudakais-modal-content {
    background: #1f2937;
  }
  
  .chroudakais-modal-title h3 {
    color: #f9fafb;
  }
  
  .chroudakais-form-description {
    color: #9ca3af;
  }
  
  .form-row label {
    color: #e5e7eb;
  }
  
  .input-text {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .input-text:focus {
    border-color: #6366f1;
  }
  
  .input-text:hover {
    border-color: #4b5563;
  }
  
  .chroudakais-modal-close {
    background: #374151;
  }
  
  .chroudakais-modal-close:hover {
    background: #4b5563;
  }
  
  .chroudakais-modal-close svg {
    color: #d1d5db;
  }
}

/* Focus trap styles for accessibility */
.chroudakais-modal-content:focus {
  outline: none;
}

/* Smooth scrolling for modal content */
.chroudakais-modal-content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for webkit browsers */
.chroudakais-modal-content::-webkit-scrollbar {
  width: 6px;
}

.chroudakais-modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.chroudakais-modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.chroudakais-modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}




/* =====================================================
   PROFESSIONAL FIELDS STYLING
   ===================================================== */

/* Professional fields in My Account */
.woocommerce-MyAccount-content fieldset {
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 5px;
    background: #fafafa;
    margin-top: 20px;
}

.woocommerce-MyAccount-content fieldset legend {
    padding: 0 10px;
    font-weight: 600;
    color: #333;
    background: white;
}

/* Professional info display box */
.woocommerce-message.professional-info-display {
    background: #f8f9fa !important;
    border-left: 4px solid #2271b1 !important;
}

/* Admin professional fields */
.professional-field {
    background: #f9f9f9;
    transition: all 0.3s ease;
}

/* Professional badge in user list */
.column-account_type .pro-badge {
    background: #2271b1;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Order admin professional info */
.order_data_column .professional-info {
    margin-top: 15px;
    padding: 12px;
    background: #f0f6fc;
    border: 1px solid #c3e1ff;
    border-radius: 4px;
}

/* ============================================
   CRITICAL SPINNER FIX - Maximum Priority
   Must be at end of file for highest specificity
   ============================================ */

/* Absolute fix for spinner vertical movement */
button.chroudakais-loading,
button.chroudakais-loading:hover,
button.chroudakais-loading:focus,
button.chroudakais-loading:active {
    /* Lock the button height */
    height: auto !important;
    min-height: 44px !important;
    line-height: normal !important;
    /* Prevent any layout shift */
    box-sizing: border-box !important;
    /* Disable ALL animations on the button itself */
    animation: none !important;
    transition: none !important;
}

/* Force spinner to stay centered - maximum specificity */
html body button.chroudakais-loading::after,
html body .woocommerce button.chroudakais-loading::after,
html body .woocommerce-page button.chroudakais-loading::after,
html body form button.chroudakais-loading::after {
    /* Absolute positioning with calc */
    position: absolute !important;
    left: calc(50% - 10px) !important;
    top: calc(50% - 10px) !important;
    /* Ensure no margins affect position */
    margin: 0 !important;
    /* Only rotate, no other transforms */
    animation-name: spinOnly !important;
    animation-duration: 0.8s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    /* Prevent any inherited transforms */
    transform-origin: center center !important;
}

/* Final override for any stubborn themes */
.chroudakais-login-form button.chroudakais-loading::after,
.chroudakais-register-form button.chroudakais-loading::after {
    position: absolute !important;
    left: calc(50% - 10px) !important;
    top: calc(50% - 10px) !important;
    margin: 0 !important;
}
/* Reset and base styles */
.chroudakais-modal * {
  box-sizing: border-box;
}

/* Modal overlay and container */
.chroudakais-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chroudakais-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Modal content container */
.chroudakais-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal header */
.chroudakais-modal-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 24px;
}

.chroudakais-modal-header h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
}

/* Close button */
.chroudakais-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f9fafb;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chroudakais-modal-close:hover {
  background: #f3f4f6;
  transform: rotate(90deg);
}

.chroudakais-modal-close svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

/* Modal body */
.chroudakais-modal-body {
  padding: 0 28px 28px;
}

/* Success message container */
.chroudakais-message.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.chroudakais-message.success::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}

/* Success icon */
.chroudakais-message.success > div {
  position: relative;
  z-index: 1;
}

.chroudakais-message.success h3 {
  color: #065f46;
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
}

.chroudakais-message.success p {
  color: #374151;
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-size: 15px;
}

.chroudakais-message.success strong {
  color: #1f2937;
  font-size: 17px;
  font-weight: 600;
  display: block;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Success checkmark animation */
.success-checkmark {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-checkmark svg {
  animation: checkmark 0.8s ease-out 0.3s forwards;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

@keyframes checkmark {
  to {
    stroke-dashoffset: 0;
  }
}

/* Tip message */
.chroudakais-message.success p:last-child {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #92400e;
  margin: 20px 0 0 0;
}

/* Buttons */
.chroudakais-submit-btn,
.close-modal-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.close-modal-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  margin-top: 16px;
}

.chroudakais-submit-btn:hover,
.close-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.chroudakais-submit-btn:active,
.close-modal-btn:active {
  transform: translateY(0);
}

/* Button ripple effect */
.chroudakais-submit-btn::after,
.close-modal-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.chroudakais-submit-btn:active::after,
.close-modal-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Hidden elements */
.form-row[style*="display: none"],
.chroudakais-submit-btn[style*="display: none"],
.chroudakais-back-to-login[style*="display: none"] {
  display: none !important;
}

/* Mobile responsive design */
@media (max-width: 640px) {
  .chroudakais-modal {
    padding: 16px;
  }
  
  .chroudakais-modal-content {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .chroudakais-modal-header {
    padding: 24px 24px 0;
  }
  
  .chroudakais-modal-header h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .chroudakais-modal-close {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }
  
  .chroudakais-modal-body {
    padding: 0 24px 24px;
  }
  
  .chroudakais-message.success {
    padding: 24px 20px;
    border-radius: 12px;
  }
  
  .chroudakais-message.success h3 {
    font-size: 18px;
  }
  
  .chroudakais-message.success p {
    font-size: 14px;
  }
  
  .chroudakais-message.success strong {
    font-size: 16px;
  }
  
  .success-checkmark {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  
  .chroudakais-submit-btn,
  .close-modal-btn {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .chroudakais-modal {
    padding: 12px;
  }
  
  .chroudakais-modal-header {
    padding: 20px 20px 0;
  }
  
  .chroudakais-modal-header h3 {
    font-size: 18px;
  }
  
  .chroudakais-modal-body {
    padding: 0 20px 20px;
  }
  
  .chroudakais-message.success {
    padding: 20px 16px;
  }
  
  .chroudakais-message.success p:last-child {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* Smooth scrolling */
.chroudakais-modal-content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
.chroudakais-modal-content::-webkit-scrollbar {
  width: 6px;
}

.chroudakais-modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.chroudakais-modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.chroudakais-modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Print styles */
@media print {
  .chroudakais-modal {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .chroudakais-modal-content {
    border: 2px solid #000;
  }
  
  .chroudakais-message.success {
    border: 2px solid #065f46;
  }
  
  .chroudakais-submit-btn,
  .close-modal-btn {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Reset Password Form Container */
.woocommerce-ResetPassword {
  max-width: 440px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.woocommerce-ResetPassword::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  border-radius: 50%;
  opacity: 0.05;
}

/* Form title/description */
.woocommerce-ResetPassword > p:first-child {
  margin: 0 0 32px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
  position: relative;
}

/* Form rows */
.woocommerce-form-row {
  margin-bottom: 24px;
  position: relative;
}

/* Labels */
.woocommerce-form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.woocommerce-form-row .required {
  color: #ef4444;
  font-weight: 400;
  margin-left: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Password input wrapper */
.password-input {
  position: relative;
  display: block;
}

/* Input fields */
.woocommerce-Input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.woocommerce-Input:hover {
  border-color: #d1d5db;
}

.woocommerce-Input:focus {
  outline: none;
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.woocommerce-Input:focus + .show-password-input {
  color: #6366f1;
}

/* Show/Hide password button */
.show-password-input {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.show-password-input:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.show-password-input:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Eye icon for password toggle */
.show-password-input::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.show-password-input.active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
}

/* Password strength indicator */
.woocommerce-password-strength {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.woocommerce-password-strength.show {
  opacity: 1;
  transform: translateY(0);
}

/* Password strength levels */
.woocommerce-password-strength.short,
.woocommerce-password-strength.very-weak {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.woocommerce-password-strength.weak {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.woocommerce-password-strength.medium {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.woocommerce-password-strength.strong {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Clear div */
.clear {
  clear: both;
  height: 0;
  line-height: 0;
  visibility: hidden;
}

/* Submit button */
.woocommerce-Button {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

.woocommerce-Button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.4);
}

.woocommerce-Button:active {
  transform: translateY(0);
}

.woocommerce-Button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.woocommerce-Button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Button loading state */
.woocommerce-Button.loading {
  color: transparent;
}

.woocommerce-Button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Success message */
.woocommerce-message {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #065f46;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-message::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Error message */
.woocommerce-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #991b1b;
  font-size: 15px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .woocommerce-ResetPassword {
    margin: 20px;
    padding: 28px 24px;
    border-radius: 12px;
  }
  
  .woocommerce-ResetPassword > p:first-child {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .woocommerce-form-row {
    margin-bottom: 20px;
  }
  
  .woocommerce-Input {
    padding: 12px 44px 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .show-password-input {
    width: 32px;
    height: 32px;
    right: 8px;
  }
  
  .woocommerce-Button {
    padding: 14px 28px;
    font-size: 15px;
    margin-top: 24px;
  }
  
  .woocommerce-password-strength {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .woocommerce-ResetPassword {
    margin: 16px;
    padding: 24px 20px;
  }
  
  .woocommerce-form-row label {
    font-size: 13px;
  }
}

/* Tablet optimization */
@media (min-width: 641px) and (max-width: 1024px) {
  .woocommerce-ResetPassword {
    max-width: 500px;
    padding: 48px;
  }
}

/* Focus visible for accessibility */
.woocommerce-Input:focus-visible,
.show-password-input:focus-visible,
.woocommerce-Button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .woocommerce-ResetPassword {
    background: #1f2937;
    border-color: #374151;
  }
  
  .woocommerce-ResetPassword > p:first-child {
    color: #9ca3af;
  }
  
  .woocommerce-form-row label {
    color: #e5e7eb;
  }
  
  .woocommerce-Input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .woocommerce-Input:hover {
    border-color: #4b5563;
  }
  
  .woocommerce-Input:focus {
    background: #1f2937;
  }
  
  .show-password-input:hover {
    background: #374151;
  }
}

/* Print styles */
@media print {
  .show-password-input {
    display: none !important;
  }
}
/* Lost Password Form Container */
.woocommerce-ResetPassword.lost_reset_password {
  max-width: 420px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.woocommerce-ResetPassword.lost_reset_password::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.woocommerce-ResetPassword.lost_reset_password::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* Form icon header (optional) */
.woocommerce-ResetPassword.lost_reset_password > p:first-child::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border-radius: 16px;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}

/* Form description */
.woocommerce-ResetPassword.lost_reset_password > p:first-child {
  margin: 0 0 32px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Form row */
.woocommerce-form-row {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Labels */
.woocommerce-form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.woocommerce-form-row .required {
  color: #ef4444;
  font-weight: 400;
  margin-left: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Input field */
.woocommerce-Input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 20px 20px;
}

.woocommerce-Input:hover {
  border-color: #d1d5db;
  background-color: #ffffff;
}

.woocommerce-Input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);

}

.woocommerce-Input::placeholder {
  color: #9ca3af;
}

/* Clear div */
.clear {
  clear: both;
  height: 0;
  line-height: 0;
  visibility: hidden;
}

/* Submit button */
.woocommerce-Button {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  z-index: 1;
}

.woocommerce-Button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.woocommerce-Button:hover::before {
  opacity: 1;
}

.woocommerce-Button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.4);
}

.woocommerce-Button:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.woocommerce-Button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.woocommerce-Button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Button loading state */
.woocommerce-Button.loading {
  color: transparent;
  pointer-events: none;
}

.woocommerce-Button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Success message */
.woocommerce-message {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px 16px 48px;
  margin-bottom: 24px;
  color: #065f46;
  font-size: 15px;
  position: relative;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.woocommerce-message::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Error message */
.woocommerce-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px 20px 16px 48px;
  margin-bottom: 24px;
  color: #991b1b;
  font-size: 15px;
  position: relative;
}

.woocommerce-error::before {
  content: '!';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Help link */
.woocommerce-ResetPassword.lost_reset_password::after {
  content: 'Besoin d\'aide ? Contactez le support';
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .woocommerce-ResetPassword.lost_reset_password {
    margin: 20px;
    padding: 28px 24px;
    border-radius: 12px;
  }
  
  .woocommerce-ResetPassword.lost_reset_password > p:first-child::before {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background-size: 28px 28px;
  }
  
  .woocommerce-ResetPassword.lost_reset_password > p:first-child {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .woocommerce-form-row {
    margin-bottom: 20px;
  }
  
  .woocommerce-Input {
    padding: 12px 14px 12px 40px;
    font-size: 16px; /* Prevents zoom on iOS */
    background-size: 18px 18px;
    background-position: 12px center;
  }
  
  .woocommerce-Button {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .woocommerce-message,
  .woocommerce-error {
    padding: 14px 16px 14px 44px;
    font-size: 14px;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .woocommerce-ResetPassword.lost_reset_password {
    margin: 16px;
    padding: 24px 20px;
  }
  
  .woocommerce-form-row label {
    font-size: 13px;
  }
  
  .woocommerce-Button {
    font-size: 14px;
  }
}

/* Tablet optimization */
@media (min-width: 641px) and (max-width: 1024px) {
  .woocommerce-ResetPassword.lost_reset_password {
    max-width: 480px;
    padding: 48px;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .woocommerce-ResetPassword.lost_reset_password {
    background: #1f2937;
    border-color: #374151;
  }
  
  .woocommerce-ResetPassword.lost_reset_password::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  }
  
  .woocommerce-ResetPassword.lost_reset_password > p:first-child {
    color: #9ca3af;
  }
  
  .woocommerce-form-row label {
    color: #e5e7eb;
  }
  
  .woocommerce-Input {
    background-color: #111827;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .woocommerce-Input:hover {
    border-color: #4b5563;
    background-color: #1f2937;
  }
  
  .woocommerce-Input:focus {
    background-color: #1f2937;
  }
}

/* Animation for form elements */
.woocommerce-ResetPassword.lost_reset_password > *:not(::before):not(::after) {
  animation: fadeInUp 0.5s ease-out backwards;
}

.woocommerce-ResetPassword.lost_reset_password > p:first-child {
  animation-delay: 0.1s;
}

.woocommerce-form-row {
  animation-delay: 0.2s;
}

.woocommerce-Button {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus visible for accessibility */
.woocommerce-Input:focus-visible,
.woocommerce-Button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .woocommerce-ResetPassword.lost_reset_password::before,
  .woocommerce-ResetPassword.lost_reset_password::after {
    display: none !important;
  }
}
/* Make password strength indicator visible and styled */
#password_strength,
.woocommerce-password-strength {
    display: block !important;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Remove any conflicting styles that might hide it */
#password_strength.woocommerce-password-strength {
    opacity: 1 !important;
    height: auto !important;
    visibility: visible !important;
    position: relative !important;
    width: auto !important;
    overflow: visible !important;
	top: 0px;
}

/* Password strength levels */
.woocommerce-password-strength.short,
.woocommerce-password-strength.very-weak {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.woocommerce-password-strength.weak {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.woocommerce-password-strength.medium {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.woocommerce-password-strength.strong {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Add an icon before the text */
.woocommerce-password-strength::before {
    content: '🔒 ';
    margin-right: 4px;
}

/* Animation when it appears */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-password-strength {
    animation: fadeIn 0.3s ease-out;
}