/* =================================
   XOO ML Custom Beautiful UI Styles
   ================================= */

/* Reset and Base Styles */
.xoo-ml-custom-login-form * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on iOS */
.xoo-ml-custom-input,
.xoo-ml-custom-select {
    font-size: 16px !important;
}

/* Main Container - Modal Style */
.xoo-ml-custom-login-form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    max-width: 428px !important;
    width: 100% !important;
    margin: 10px auto !important;
    background: linear-gradient(180deg, #6B5DD3 0%, #3D2E8F 100%) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    position: relative !important;
    border: none !important;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

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

/* Header Section */
.xoo-ml-custom-header {
    background: transparent !important;
    padding: 60px 24px 28px !important;
    text-align: center !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Phone Icon Container */
.xoo-ml-custom-icon {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle, rgba(139, 126, 234, 0.4) 0%, rgba(107, 93, 211, 0.2) 70%, transparent 100%) !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 1 !important;
}

.xoo-ml-custom-icon::before {
    content: '' !important;
    position: absolute !important;
    width: 80px !important;
    height: 80px !important;
    background: rgba(139, 126, 234, 0.5) !important;
    border-radius: 50% !important;
}

.xoo-ml-custom-icon svg {
    width: 36px !important;
    height: 36px !important;
    position: relative !important;
    z-index: 1 !important;
}

.xoo-ml-custom-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.xoo-ml-custom-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 32px !important;
    position: relative !important;
    z-index: 1 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.xoo-ml-custom-subtitle {
    font-size: 16px !important;
    opacity: 0.85 !important;
    position: relative !important;
    z-index: 1 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
}

/* Form Container */
.xoo-ml-custom-form-container {
    padding: 32px 24px !important;
    background: transparent !important;
    position: relative !important;
}

.xoo-ml-custom-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Input Groups */
.xoo-ml-input-group {
    margin-bottom: 20px;
    position: relative;
}

.xoo-ml-input-group label,
.xoo-ml-custom-label {
    display: block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease !important;
    letter-spacing: 0 !important;
}

/* Extra specificity to force white labels */
.xoo-ml-custom-login-form .xoo-ml-input-group label,
.xoo-ml-custom-login-form .xoo-ml-custom-label,
.xoo-ml-custom-login-form label.xoo-ml-custom-label,
.xoo-ml-custom-form-container label,
.xoo-ml-custom-form-container .xoo-ml-custom-label,
#xoo-ml-custom-form label,
#xoo-ml-custom-form .xoo-ml-custom-label,
#xoo-ml-custom-form label.xoo-ml-custom-label,
.xoo-ml-custom-form label,
.xoo-ml-step-content label,
.xoo-ml-custom-input-group label,
form#xoo-ml-custom-form label[for] {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Input Styles */
.xoo-ml-custom-input {
    width: 100% !important;
    padding: 20px !important;
    border: 1px solid rgba(139, 126, 234, 0.3) !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: rgba(78, 63, 168, 0.4) !important;
    color: #ffffff !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.xoo-ml-custom-input:focus {
    border-color: rgba(139, 126, 234, 0.5) !important;
    background: rgba(78, 63, 168, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(139, 126, 234, 0.2) !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
}

.xoo-ml-custom-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
}

.xoo-ml-custom-input:disabled {
    background: rgba(78, 63, 168, 0.2) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border-color: rgba(139, 126, 234, 0.2) !important;
}

.xoo-ml-custom-input.phone-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ffffff !important;
}

.xoo-ml-custom-input.phone-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.phone-validation-message {
    color: #fca5a5 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    font-weight: 500 !important;
}

/* Phone Input with Country Code */
.xoo-ml-phone-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.xoo-ml-country-code {
    flex: 0 0 120px;
    min-width: 120px;
}

.xoo-ml-phone-number {
    flex: 1;
    min-width: 0; /* Allows flexbox to shrink */
}

/* Country Flag Support */
.xoo-ml-custom-select option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    background: #2a1f5c !important;
    color: #ffffff !important;
}

.xoo-ml-custom-select option:before {
    content: attr(data-flag);
    margin-right: 8px;
}

/* Select Styling */
.xoo-ml-custom-select {
    width: 100% !important;
    padding: 20px 40px 20px 20px !important;
    border: 1px solid rgba(139, 126, 234, 0.3) !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    background: rgba(78, 63, 168, 0.4) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>') no-repeat right 16px center !important;
    background-size: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
}

.xoo-ml-custom-select:focus {
    border-color: rgba(139, 126, 234, 0.5) !important;
    background-color: rgba(78, 63, 168, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(139, 126, 234, 0.2) !important;
    color: #ffffff !important;
}

/* Button Styles */
.xoo-ml-custom-button {
    width: 100% !important;
    padding: 18px 20px !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-height: 64px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.xoo-ml-btn-primary {
    background: linear-gradient(135deg, #5B7FED 0%, #8B5EE8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(91, 127, 237, 0.3) !important;
    position: relative !important;
}

.xoo-ml-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.xoo-ml-btn-primary:hover::before {
    left: 100%;
}

.xoo-ml-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(91, 127, 237, 0.4) !important;
    color: #ffffff !important;
}

.xoo-ml-btn-primary:active {
    transform: translateY(0) !important;
    color: #ffffff !important;
}

.xoo-ml-btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
    color: #ffffff !important;
}

.xoo-ml-btn-primary:disabled {
    background: rgba(78, 63, 168, 0.3) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.xoo-ml-btn-primary:disabled:hover {
    background: rgba(78, 63, 168, 0.3) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
    box-shadow: none !important;
}

.xoo-ml-btn-secondary {
    background: rgba(78, 63, 168, 0.3) !important;
    color: #ffffff !important;
    border: 1px solid rgba(139, 126, 234, 0.4) !important;
}

.xoo-ml-btn-secondary:hover {
    background: rgba(78, 63, 168, 0.4) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

/* Loading States */
.xoo-ml-loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

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

.xoo-ml-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* OTP Input Styling */
.xoo-ml-otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.xoo-ml-otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.xoo-ml-otp-digit:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Success/Error Messages */
.xoo-ml-message {
    padding: 16px 20px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    animation: slideInDown 0.4s ease-out !important;
}

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

.xoo-ml-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.xoo-ml-error {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.xoo-ml-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

/* Timer Display */
.xoo-ml-timer {
    text-align: center !important;
    margin: 15px 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400 !important;
}

.xoo-ml-timer.urgent {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Resend OTP Link */
.xoo-ml-resend-link {
    display: flex !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent !important;
}

.xoo-ml-resend-link:hover {
    background: rgba(139, 126, 234, 0.2) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.xoo-ml-resend-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .xoo-ml-custom-login-form {
        margin: 8px;
        border-radius: 12px;
        max-width: calc(100% - 16px);
        min-height: auto;
    }
    
    .xoo-ml-custom-form-container {
        padding: 24px 20px;
    }
    
    .xoo-ml-custom-header {
        padding: 20px 16px;
    }
    
    .xoo-ml-custom-title {
        font-size: 20px;
    }
    
    .xoo-ml-custom-subtitle {
        font-size: 13px;
    }
    
    .xoo-ml-phone-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        align-items: stretch !important;
        width: 100%;
    }
    
    .xoo-ml-country-code {
        flex: 0 0 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
    }
    
    .xoo-ml-phone-number {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 103px) !important;
    }
    
    .xoo-ml-custom-input,
    .xoo-ml-custom-select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .xoo-ml-custom-button {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 16px;
    }
    
    .xoo-ml-input-group {
        margin-bottom: 16px;
    }
    
    .xoo-ml-input-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        color: #ffffff !important;
    }
    
    /* Better touch targets */
    .xoo-ml-custom-select {
        padding: 14px 40px 14px 16px;
        min-height: 48px;
    }
    
    /* Larger clickable areas */
    .xoo-ml-resend-link {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    /* Prevent zoom on focus */
    .xoo-ml-custom-input,
    .xoo-ml-custom-select {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Tab optimizations for mobile */
    .xoo-ml-login-tabs {
        margin-bottom: 20px;
    }
    
    .xoo-ml-tab-btn {
        padding: 10px 12px;
        gap: 6px;
        min-height: 40px;
    }
    
    .tab-text {
        font-size: 12px;
    }
    
    .tab-icon {
        font-size: 14px;
    }
    
    .xoo-ml-password-toggle {
        right: 10px;
        padding: 6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .xoo-ml-custom-login-form {
        margin: 4px;
        border-radius: 8px;
    }
    
    .xoo-ml-custom-form-container {
        padding: 20px 16px;
    }
    
    .xoo-ml-custom-header {
        padding: 16px 12px;
    }
    
    .xoo-ml-custom-title {
        font-size: 18px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .xoo-ml-custom-login-form {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .xoo-ml-custom-form-container {
        background: #1f2937;
    }
    
    .xoo-ml-input-group label {
        color: #ffffff !important;
    }
    
    .xoo-ml-custom-input,
    .xoo-ml-custom-select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .xoo-ml-custom-input::placeholder {
        color: #9ca3af;
    }
    
    .xoo-ml-custom-input:focus,
    .xoo-ml-custom-select:focus {
        background: #4b5563;
        border-color: #667eea;
        color: #f9fafb;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    
    .xoo-ml-custom-select {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23f9fafb" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    }
    
    .xoo-ml-btn-secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .xoo-ml-btn-secondary:hover {
        background: #4b5563;
        color: #f9fafb;
    }
    
    .xoo-ml-timer {
        color: #d1d5db;
    }
    
    .xoo-ml-resend-link {
        color: #818cf8;
    }
    
    .xoo-ml-resend-link:hover {
        background: rgba(129, 140, 248, 0.1);
        color: #a5b4fc;
    }
    
    .xoo-ml-custom-input.phone-error {
        border-color: #f87171;
        background: #7f1d1d;
        color: #fca5a5;
    }
    
    .xoo-ml-custom-input.phone-error:focus {
        border-color: #f87171;
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
    }
    
    .phone-validation-message {
        color: #fca5a5;
    }
}

/* Welcome Message for Logged-in Users */
.xoo-ml-welcome-message {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.xoo-ml-welcome-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.xoo-ml-welcome-message p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Utility Classes */
.xoo-ml-text-center { text-align: center; }
.xoo-ml-mt-10 { margin-top: 10px; }
.xoo-ml-mt-20 { margin-top: 20px; }
.xoo-ml-mb-10 { margin-bottom: 10px; }
.xoo-ml-mb-20 { margin-bottom: 20px; }

/* Hidden Elements */
.xoo-ml-hidden {
    display: none !important;
}

/* Animation for form transitions */
.xoo-ml-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* reCAPTCHA Container */
#recaptcha-container {
    margin: 20px 0;
    text-align: center;
}

/* Custom Scrollbar */
.xoo-ml-custom-login-form::-webkit-scrollbar {
    width: 6px;
}

.xoo-ml-custom-login-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.xoo-ml-custom-login-form::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.xoo-ml-custom-login-form::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Login Method Tabs */
.xoo-ml-login-tabs {
    display: flex !important;
    margin-bottom: 24px !important;
    background: rgba(78, 63, 168, 0.3) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
}

.xoo-ml-tab-btn {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
}

.xoo-ml-tab-btn.active {
    background: linear-gradient(135deg, #5B7FED 0%, #8B5EE8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(91, 127, 237, 0.3) !important;
}

.xoo-ml-tab-btn:hover:not(.active) {
    background: rgba(139, 126, 234, 0.2) !important;
    color: #ffffff !important;
}

.tab-icon {
    font-size: 16px !important;
}

.tab-text {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Tab Content */
.xoo-ml-tab-content {
    animation: fadeIn 0.3s ease-out;
}

.xoo-ml-tab-content:not(.active) {
    display: none;
}

/* Password Container */
.xoo-ml-password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.xoo-ml-password-container input {
    flex: 1;
    padding-right: 50px;
}

.xoo-ml-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 16px;
    z-index: 10;
}

.xoo-ml-password-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.xoo-ml-password-toggle:focus {
    outline: none;
    background: rgba(102, 126, 234, 0.2);
}

/* Input hint text */
.xoo-ml-input-hint {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 6px !important;
    font-style: italic !important;
}

/* Network Issues and Quick Login Buttons */
.xoo-ml-network-issues-text {
    text-align: center !important;
    margin: 24px 0 12px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.xoo-ml-fix-network-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    background: rgba(78, 63, 168, 0.3) !important;
    border: 1px solid rgba(139, 126, 234, 0.4) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    min-height: 48px !important;
}

.xoo-ml-fix-network-btn:hover {
    background: rgba(78, 63, 168, 0.4) !important;
    color: #ffffff !important;
}

.xoo-ml-quick-login-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: 1.5px solid rgba(139, 126, 234, 0.5) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 56px !important;
    margin-top: 16px !important;
}

.xoo-ml-quick-login-btn:hover {
    background: rgba(78, 63, 168, 0.2) !important;
    border-color: rgba(139, 126, 234, 0.6) !important;
    color: #ffffff !important;
}

.xoo-ml-quick-login-icon {
    color: #5EE8C0 !important;
    width: 20px !important;
    height: 20px !important;
}

.xoo-ml-network-icon {
    width: 16px !important;
    height: 16px !important;
}

/* Step descriptions */
.xoo-ml-step-description {
    text-align: center !important;
    font-size: 14px !important;
    color: #000000 !important;
    margin: 16px 0 24px !important;
    font-weight: 400 !important;
}

.xoo-ml-step-header h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.xoo-ml-step-header p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 24px !important;
}

/* Login Options (OTP vs Password choice) */
.xoo-ml-login-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.xoo-ml-login-option {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: rgba(78, 63, 168, 0.3) !important;
    border: 1px solid rgba(139, 126, 234, 0.4) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    width: 100% !important;
}

.xoo-ml-login-option:hover {
    background: rgba(78, 63, 168, 0.4) !important;
    border-color: rgba(139, 126, 234, 0.6) !important;
    transform: translateY(-2px) !important;
}

.login-option-icon {
    font-size: 28px !important;
    flex-shrink: 0 !important;
}

.login-option-text {
    flex: 1 !important;
}

.login-option-text strong {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}

.login-option-text small {
    display: block !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   THEME OVERRIDE - Maximum Specificity
   Prevents any theme or plugin interference
   ============================================ */

/* Force all form elements to follow our styling */
.xoo-ml-custom-login-form input,
.xoo-ml-custom-login-form select,
.xoo-ml-custom-login-form button,
.xoo-ml-custom-login-form textarea {
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Reset all margins and paddings from themes */
.xoo-ml-custom-login-form h1,
.xoo-ml-custom-login-form h2,
.xoo-ml-custom-login-form h3,
.xoo-ml-custom-login-form h4,
.xoo-ml-custom-login-form h5,
.xoo-ml-custom-login-form h6,
.xoo-ml-custom-login-form p,
.xoo-ml-custom-login-form div,
.xoo-ml-custom-login-form span {
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

/* Ensure buttons don't get theme button styles */
.xoo-ml-custom-login-form button[type="button"],
.xoo-ml-custom-login-form button[type="submit"],
.xoo-ml-custom-login-form .xoo-ml-custom-button,
.xoo-ml-custom-login-form .xoo-ml-btn-primary,
.xoo-ml-custom-login-form .xoo-ml-btn-secondary {
    box-shadow: inherit !important;
    text-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force white text on header elements, black on labels */
.xoo-ml-custom-login-form .xoo-ml-custom-header,
.xoo-ml-custom-login-form .xoo-ml-custom-title,
.xoo-ml-custom-login-form .xoo-ml-custom-subtitle {
    color: #ffffff !important;
}

.xoo-ml-custom-login-form label,
.xoo-ml-custom-login-form .xoo-ml-input-group label,
.xoo-ml-custom-login-form .xoo-ml-custom-label {
    color: #ffffff !important;
}

/* Prevent Bootstrap or other framework interference */
.xoo-ml-custom-login-form *,
.xoo-ml-custom-login-form *::before,
.xoo-ml-custom-login-form *::after {
    box-sizing: border-box !important;
}

/* Override any theme link colors */
.xoo-ml-custom-login-form a {
    text-decoration: none !important;
}

/* Force our gradient backgrounds */
.xoo-ml-custom-login-form {
    isolation: isolate !important;
}

/* Prevent z-index conflicts */
.xoo-ml-custom-login-form {
    z-index: 9999 !important;
    position: relative !important;
}

/* Override any global button resets */
.xoo-ml-custom-login-form button,
.xoo-ml-custom-login-form .xoo-ml-custom-button {
    font-family: inherit !important;
    line-height: normal !important;
    text-decoration: none !important;
}
